diff options
author | thlo <t.lohmar@gmx.de> | 2013-04-05 17:43:54 +0200 |
---|---|---|
committer | thlo <t.lohmar@gmx.de> | 2013-04-05 17:43:54 +0200 |
commit | 0d3bb5c8d940b416ccc06a68a8ccfc35370fdbd4 (patch) | |
tree | 5e1b34165922afd5940e3ff566221fbd34d76155 /smarttv-client/Javascript/Config.js | |
parent | d5c26eb7a9c51e82be0ac41bd04f4433043776cd (diff) | |
download | vdr-plugin-smarttvweb-0d3bb5c8d940b416ccc06a68a8ccfc35370fdbd4.tar.gz vdr-plugin-smarttvweb-0d3bb5c8d940b416ccc06a68a8ccfc35370fdbd4.tar.bz2 |
Selection of audio tracks.
First version of web video (yt) support.
various bug fixes.
Diffstat (limited to 'smarttv-client/Javascript/Config.js')
-rwxr-xr-x | smarttv-client/Javascript/Config.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/smarttv-client/Javascript/Config.js b/smarttv-client/Javascript/Config.js index 38bed1c..027780a 100755 --- a/smarttv-client/Javascript/Config.js +++ b/smarttv-client/Javascript/Config.js @@ -18,6 +18,7 @@ var Config = { usePdlForRecordings : true,
uploadJsFile : "",
directAcessTimeout : 1500,
+ preferredQuality : 2,
widgetVersion : "unknown",
deviceType : 0 // Used to differentiate between browsers and platforms
// 0: Samsung
@@ -84,7 +85,7 @@ Config.init = function () { Config.readContext();
}
}
-
+ Server.notifyServer("started");
Config.fetchConfig();
};
@@ -111,6 +112,7 @@ Config.getWidgetVersion = function () { });
};
+
Config.fetchConfig = function () {
$.ajax({
url: this.serverUrl + "/widget.conf",
@@ -133,7 +135,8 @@ Config.fetchConfig = function () { Config.usePdlForRecordings = ($(data).find('usePdlForRecordings').text() == "false") ? false : true;
Config.uploadJsFile = $(data).find('uploadJsFile').text();
Config.directAcessTimeout = $(data).find('directAcessTimeout').text();
-
+ Config.preferredQuality = $(data).find('preferredQuality').text();
+
Player.skipDuration = Config.skipDuration;
if (Config.directAcessTimeout != "") {
DirectAccess.delay = Config.directAcessTimeout;
|