From aff76870787df2bfe969a64c928cc62f46d45acd Mon Sep 17 00:00:00 2001 From: Tiago Pinto Date: Tue, 19 Jul 2022 15:12:45 +0100 Subject: [PATCH 1/2] Add Transcoding option to settings --- .vscode/tasks.json | 41 +++++++++++++++++++ .../Configuration/PluginConfiguration.cs | 4 ++ .../Configuration/configPage.html | 12 ++++++ .../Jellyfin.Plugin.Enigma2.csproj | 4 +- Jellyfin.Plugin.Enigma2/LiveTvService.cs | 35 ++++++++-------- build.yaml | 2 +- 6 files changed, 76 insertions(+), 22 deletions(-) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..2dba439 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/Jellyfin.Plugin.Enigma2/Jellyfin.Plugin.Enigma2.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/Jellyfin.Plugin.Enigma2/Jellyfin.Plugin.Enigma2.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/Jellyfin.Plugin.Enigma2/Jellyfin.Plugin.Enigma2.csproj" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git a/Jellyfin.Plugin.Enigma2/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.Enigma2/Configuration/PluginConfiguration.cs index 57972b4..64cab1b 100644 --- a/Jellyfin.Plugin.Enigma2/Configuration/PluginConfiguration.cs +++ b/Jellyfin.Plugin.Enigma2/Configuration/PluginConfiguration.cs @@ -23,6 +23,8 @@ namespace Jellyfin.Plugin.Enigma2.Configuration public string RecordingPath { get; set; } + public bool TranscodedStream { get; set; } + public bool EnableDebugLogging { get; set; } @@ -44,6 +46,8 @@ namespace Jellyfin.Plugin.Enigma2.Configuration RecordingPath = ""; + TranscodedStream = false; + EnableDebugLogging = false; } } diff --git a/Jellyfin.Plugin.Enigma2/Configuration/configPage.html b/Jellyfin.Plugin.Enigma2/Configuration/configPage.html index 810208b..85eb199 100644 --- a/Jellyfin.Plugin.Enigma2/Configuration/configPage.html +++ b/Jellyfin.Plugin.Enigma2/Configuration/configPage.html @@ -127,6 +127,16 @@ +
+ +
+ Request Transcoded Stream (h264, 720p, 1Mpbs and mp4 as default) +
+
+