summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2013-01-27 13:53:09 +0100
committerM. Voerman <rekordc@gmail.com>2013-01-27 13:53:09 +0100
commit96148603c0819243f34e01517fe3d110972f174d (patch)
treea6f27fd97b705c91c44e35153aa48c00253d9b5c
parente5e26df10afd218b6a477d193104843c812a54dd (diff)
downloadvdr-vipclient-96148603c0819243f34e01517fe3d110972f174d.tar.gz
vdr-vipclient-96148603c0819243f34e01517fe3d110972f174d.tar.bz2
Fixed default channel, if start channel isn't in channelgroup 0
Fixed a bug in setresume
-rw-r--r--index.html3
-rw-r--r--settings.js4
2 files changed, 4 insertions, 3 deletions
diff --git a/index.html b/index.html
index 88fef0e..5275a7e 100644
--- a/index.html
+++ b/index.html
@@ -764,7 +764,7 @@ function onKeyDown(event) {
SI=channels[currChan].split("-");
recordStart(SI[4]);
} else {
- recordStart = (ServerAdres[ChanGroup] + channels[currChan]);
+ recordStart(ServerAdres[ChanGroup] + channels[currChan]);
}
}
break;
@@ -2289,6 +2289,7 @@ try {
function setResume() {
try {
+ position = position + (mediaPlayer.getPosition()/1000)
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("POST", recServ + "/setResume.xml?guid=" + recGUID[currMed] + "&resume=" + position, false);
xmlhttp.send();
diff --git a/settings.js b/settings.js
index 21d2f2e..962f10b 100644
--- a/settings.js
+++ b/settings.js
@@ -11,7 +11,7 @@ var Yfactor = 720 / 576;
var server_ip = "http://192.168.3.15";
var StartVolume = 15; // Volume on (re)start of the portal.
-var currChan = 10; // default channel
+var currChan = 9051; // default channel
//
//
@@ -62,7 +62,7 @@ ServerAdres[6] = server_ip + ":3000/";
// TV channels.js Settings
minChan[0] = 1;
-defChan[0] = currChan;
+defChan[0] = 10;
baseChn[0] = 0;
protChn[0] = 0;
ServerAdres[0] = server_ip + ":3000/";