243 lines
14 KiB
HTML
243 lines
14 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Enigma2</title>
|
|
</head>
|
|
<body>
|
|
<div data-role="page" id="Enigma2ConfigurationPage" class="page type-interior pluginConfigurationPage Enigma2ConfigurationPage" data-require="emby-button,emby-checkbox,emby-input">
|
|
|
|
<div data-role="content">
|
|
<div class="content-primary">
|
|
|
|
<h1>Enigma2</h1>
|
|
|
|
<form id="Enigma2ConfigurationForm" class="Enigma2ConfigurationForm">
|
|
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtHostName" type="text" label="Enigma2 hostname or ip address:" />
|
|
<div class="fieldDescription">
|
|
The host name (address) or ip address of your receiver
|
|
</div>
|
|
</div>
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtStreamingPort" type="text" label="Enigma2 streaming port:" />
|
|
<div class="fieldDescription">
|
|
The Streaming port of your receiver eg. 8001
|
|
</div>
|
|
</div>
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtWebInterfacePort" type="text" label="Enigma2 Web Interface port:" />
|
|
<div class="fieldDescription">
|
|
The web interface port of your receiver eg. 8000
|
|
</div>
|
|
</div>
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtWebInterfaceUsername" type="text" label="Enigma2 Web Interface username:" />
|
|
<div class="fieldDescription">
|
|
The web interface username of your receiver (optional)
|
|
</div>
|
|
</div>
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtWebInterfacePassword" type="password" label="Enigma2 Web Interface password:" />
|
|
<div class="fieldDescription">
|
|
The web interface password of your receiver (optional)
|
|
</div>
|
|
</div>
|
|
|
|
<div class="checkboxContainer checkboxContainer-withDescription">
|
|
<label>
|
|
<input is="emby-checkbox" type="checkbox" id="chkUseLoginForStreams" />
|
|
<span>Use login for streaming</span>
|
|
</label>
|
|
<div class="fieldDescription checkboxFieldDescription">
|
|
Use web interface login for streaming
|
|
</div>
|
|
</div>
|
|
|
|
<div class="checkboxContainer checkboxContainer-withDescription">
|
|
<label>
|
|
<input is="emby-checkbox" type="checkbox" id="chkUseSecureHTTPS" />
|
|
<span>Use secure HTTP (HTTPS)</span>
|
|
</label>
|
|
<div class="fieldDescription checkboxFieldDescription">
|
|
Use HTTPS to connect to your receiver
|
|
</div>
|
|
</div>
|
|
|
|
<div class="checkboxContainer checkboxContainer-withDescription">
|
|
<label>
|
|
<input is="emby-checkbox" type="checkbox" id="chkUseSecureHTTPSForStreams" />
|
|
<span>Use secure HTTP (HTTPS) for streams</span>
|
|
</label>
|
|
<div class="fieldDescription checkboxFieldDescription">
|
|
Use HTTPS to connect to streaming port
|
|
</div>
|
|
</div>
|
|
|
|
<div class="checkboxContainer checkboxContainer-withDescription">
|
|
<label>
|
|
<input is="emby-checkbox" type="checkbox" id="chkOnlyOneBouquet" />
|
|
<span>Fetch Only one TV bouquet</span>
|
|
</label>
|
|
<div class="fieldDescription checkboxFieldDescription">
|
|
Limit channels to only those contained within the specified TV Bouquet below (optional)
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtTVBouquet" type="text" label="Enigma2 TVBouquet:" />
|
|
<div class="fieldDescription">
|
|
The TV Bouquet to load channels for (optional)
|
|
</div>
|
|
</div>
|
|
|
|
<div class="checkboxContainer checkboxContainer-withDescription">
|
|
<label>
|
|
<input is="emby-checkbox" type="checkbox" id="chkZapToChannel" />
|
|
<span>Zap before Channel switch (single tuner)</span>
|
|
</label>
|
|
<div class="fieldDescription checkboxFieldDescription">
|
|
Set if only one tuner within receiver
|
|
</div>
|
|
</div>
|
|
|
|
<div class="checkboxContainer checkboxContainer-withDescription">
|
|
<label>
|
|
<input is="emby-checkbox" type="checkbox" id="chkFetchPiconsFromWebInterface" />
|
|
<span>Fetch picons from webinterface</span>
|
|
</label>
|
|
<div class="fieldDescription checkboxFieldDescription">
|
|
Set if you want to retrieve Picons from the web interface of the receiver
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtPiconsPath" type="text" label="Picons Path:" />
|
|
<div class="fieldDescription">
|
|
The local location of your Picons eg. C:\Picons\ (optional)
|
|
</div>
|
|
</div>
|
|
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtRecordingPath" type="text" label="Recording Path:" />
|
|
<div class="fieldDescription">
|
|
The location to store your recordings on your receiver eg. /hdd/movie/ (optional)
|
|
</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>
|
|
<div class="inputContainer">
|
|
<input is="emby-input" id="txtTranscodingPort" type="text" label="Enigma2 transcoding port:" />
|
|
<div class="fieldDescription">
|
|
The Transcoding port of your receiver eg. 8002
|
|
</div>
|
|
</div>
|
|
|
|
<label class="checkboxContainer">
|
|
<input is="emby-checkbox" type="checkbox" id="chkEnableVuRecordings" />
|
|
<span>Obsługuj nagrania z Vu+ (Enigma2 Recordings)</span>
|
|
</label>
|
|
<div class="fieldDescription">Włącza bibliotekę nagrań dekodera. Zmiana wymaga ponownego uruchomienia Jellyfina. Wyłączenie nie usuwa plików nagrań.</div>
|
|
<label class="checkboxContainer">
|
|
<input is="emby-checkbox" type="checkbox" id="chkPreferH264ForWebLiveTv" />
|
|
<span>Preferuj H264 przy transkodowaniu telewizji w przeglądarce</span>
|
|
</label>
|
|
<div class="fieldDescription">Ogranicza transkodowanie kanałów Enigma2 w aplikacji webowej do H264. Ułatwia odtwarzanie na urządzeniach bez wydajnego dekodowania AV1. Zmiana dotyczy kolejnego uruchomienia kanału.</div>
|
|
<label class="checkboxContainer">
|
|
<input is="emby-checkbox" type="checkbox" id="chkDebugLogging" />
|
|
<span>Enable Enigma2 debug logging</span>
|
|
</label>
|
|
|
|
<div>
|
|
<button is="emby-button" type="submit" class="raised button-submit block"><span>Save</span></button>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
var Enigma2ConfigurationPage = {
|
|
pluginUniqueId: "193f29f9-ea6c-4595-a6f6-55e79d7c590a",
|
|
|
|
loadConfiguration: function () {
|
|
Dashboard.showLoadingMsg();
|
|
|
|
ApiClient.getPluginConfiguration(Enigma2ConfigurationPage.pluginUniqueId).then(function (config) {
|
|
document.getElementById('txtHostName').value = config.HostName || "";
|
|
document.getElementById('txtStreamingPort').value = config.StreamingPort || "";
|
|
document.getElementById('txtWebInterfacePort').value = config.WebInterfacePort || "";
|
|
document.getElementById('txtWebInterfaceUsername').value = config.WebInterfaceUsername || "";
|
|
document.getElementById('txtWebInterfacePassword').value = config.WebInterfacePassword || "";
|
|
document.getElementById('chkUseLoginForStreams').checked = config.UseLoginForStreams || false;
|
|
document.getElementById('chkUseSecureHTTPS').checked = config.UseSecureHTTPS || false;
|
|
document.getElementById('chkUseSecureHTTPSForStreams').checked = config.UseSecureHTTPSForStreams || false;
|
|
document.getElementById('chkOnlyOneBouquet').checked = config.OnlyOneBouquet || false;
|
|
document.getElementById('txtTVBouquet').value = config.TVBouquet || "";
|
|
document.getElementById('chkZapToChannel').checked = config.ZapToChannel || false;
|
|
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('txtTranscodingPort').value = config.TranscodingPort || "";
|
|
document.getElementById('chkDebugLogging').checked = config.EnableDebugLogging || false;
|
|
document.getElementById('chkEnableVuRecordings').checked = config.EnableVuRecordings || false;
|
|
document.getElementById('chkPreferH264ForWebLiveTv').checked = config.PreferH264ForWebLiveTv !== false;
|
|
|
|
Dashboard.hideLoadingMsg();
|
|
});
|
|
},
|
|
|
|
saveConfiguration: function () {
|
|
Dashboard.showLoadingMsg();
|
|
|
|
ApiClient.getPluginConfiguration(Enigma2ConfigurationPage.pluginUniqueId).then(function (config) {
|
|
config.HostName = document.getElementById('txtHostName').value;
|
|
config.StreamingPort = document.getElementById('txtStreamingPort').value;
|
|
config.WebInterfacePort = document.getElementById('txtWebInterfacePort').value;
|
|
config.WebInterfaceUsername = document.getElementById('txtWebInterfaceUsername').value;
|
|
config.WebInterfacePassword = document.getElementById('txtWebInterfacePassword').value;
|
|
config.UseLoginForStreams = document.getElementById('chkUseLoginForStreams').checked;
|
|
config.UseSecureHTTPS = document.getElementById('chkUseSecureHTTPS').checked;
|
|
config.UseSecureHTTPSForStreams = document.getElementById('chkUseSecureHTTPSForStreams').checked;
|
|
config.OnlyOneBouquet = document.getElementById('chkOnlyOneBouquet').checked;
|
|
config.TVBouquet = document.getElementById('txtTVBouquet').value;
|
|
config.ZapToChannel = document.getElementById('chkZapToChannel').checked;
|
|
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.TranscodingPort = document.getElementById('txtTranscodingPort').value;
|
|
config.EnableDebugLogging = document.getElementById('chkDebugLogging').checked;
|
|
config.EnableVuRecordings = document.getElementById('chkEnableVuRecordings').checked;
|
|
config.PreferH264ForWebLiveTv = document.getElementById('chkPreferH264ForWebLiveTv').checked;
|
|
|
|
ApiClient.updatePluginConfiguration(Enigma2ConfigurationPage.pluginUniqueId, config).then(Dashboard.processPluginConfigurationUpdateResult);
|
|
});
|
|
}
|
|
}
|
|
|
|
document.getElementById('Enigma2ConfigurationPage').addEventListener('pageshow', function () {
|
|
Enigma2ConfigurationPage.loadConfiguration();
|
|
});
|
|
|
|
document.getElementById('Enigma2ConfigurationForm').addEventListener('submit', function (e) {
|
|
e.preventDefault();
|
|
Enigma2ConfigurationPage.saveConfiguration();
|
|
});
|
|
</script>
|
|
</div>
|
|
</body>
|
|
</html>
|