Add Transcoding option to settings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,6 +127,16 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="checkboxContainer checkboxContainer-withDescription">
|
||||
<label>
|
||||
<input is="emby-checkbox" type="checkbox" id="chkTranscodedStream" />
|
||||
<span>Request Transcoded Stream</span>
|
||||
</label>
|
||||
<div class="fieldDescription checkboxFieldDescription">
|
||||
Request Transcoded Stream (h264, 720p, 1Mpbs and mp4 as default)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label class="checkboxContainer">
|
||||
<input is="emby-checkbox" type="checkbox" id="chkDebugLogging" />
|
||||
<span>Enable Enigma2 debug logging</span>
|
||||
@@ -163,6 +173,7 @@
|
||||
document.getElementById('chkFetchPiconsFromWebInterface').checked = config.FetchPiconsFromWebInterface || false;
|
||||
document.getElementById('txtPiconsPath').value = config.PiconsPath || "";
|
||||
document.getElementById('txtRecordingPath').value = config.RecordingPath || "";
|
||||
document.getElementById('chkTranscodedStream').checked = config.TranscodedStream || false;
|
||||
document.getElementById('chkDebugLogging').checked = config.EnableDebugLogging || false;
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
@@ -187,6 +198,7 @@
|
||||
config.FetchPiconsFromWebInterface = document.getElementById('chkFetchPiconsFromWebInterface').checked;
|
||||
config.PiconsPath = document.getElementById('txtPiconsPath').value;
|
||||
config.RecordingPath = document.getElementById('txtRecordingPath').value;
|
||||
config.TranscodedStream = document.getElementById('chkTranscodedStream').checked;
|
||||
config.EnableDebugLogging = document.getElementById('chkDebugLogging').checked;
|
||||
|
||||
ApiClient.updatePluginConfiguration(Enigma2ConfigurationPage.pluginUniqueId, config).then(Dashboard.processPluginConfigurationUpdateResult);
|
||||
|
||||
Reference in New Issue
Block a user