summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2014-07-22 12:30:04 +0200
committerM. Voerman <rekordc@gmail.com>2014-07-22 12:30:04 +0200
commitec2e6f1f149ebd8505c256d47c10711a220ca417 (patch)
tree070f00f9580cc8475ee2828901fea85b2b0f871a
parentdda5982c5bc98452525ad48475e569eebb9c05ca (diff)
downloadvdr-vipclient-ec2e6f1f149ebd8505c256d47c10711a220ca417.tar.gz
vdr-vipclient-ec2e6f1f149ebd8505c256d47c10711a220ca417.tar.bz2
Removed 'pos=resume' because I can't get the right position value
-rw-r--r--index.html44
-rw-r--r--settings.js4
2 files changed, 31 insertions, 17 deletions
diff --git a/index.html b/index.html
index 4b32846..6bea706 100644
--- a/index.html
+++ b/index.html
@@ -11,7 +11,9 @@
//
// Martin Voerman Rekordc@gmail.com
//
-//
+// "THE BEER-WARE LICENSE"
+// If we meet some day, and you think
+// this stuff is worth it, you can buy me a beer in return
//
window.onkeydown = onKeyDown;
@@ -3485,9 +3487,9 @@ if (DelisOK) {
if (get_recordings == 1) {
setTimeout("GetMarks(); getResume(); playRec(recLink[currMed]+ '?mode=streamtoend&time=' + position);",100);
} else if (get_recordings == 2) {
- setTimeout("playRec(recLink[currMed]+ '?pos=resume');position = (mediaPlayer.getPosition()/1000);",100)
-// position = 0;
-// setTimeout("playRec(recLink[currMed]);",100)
+// setTimeout("playRec(recLink[currMed]+ '?pos=resume');position = (mediaPlayer.getPosition()/1000);",100)
+ position = 0;
+ setTimeout("playRec(recLink[currMed]);",100)
}
}
}
@@ -4213,7 +4215,6 @@ try {
function DelRec() {
-if (get_recordings == 1) {
if (osdepginfo.style.opacity == 1) {osdepginfo.style.opacity = 0;}
try {
//popup for confirm
@@ -4224,18 +4225,31 @@ try {
alert("Delete Recordings problem: " + e);
}
}
-}
function DelRec2() {
-try {
- xmlhttp=new XMLHttpRequest();
- xmlhttp.open("POST",(server_ip + recServ + "/deleteRecording.xml?id=" + recGUID[currMed] ),false);
- xmlhttp.send();
- recList[currMed] = "";
- recGroup[currMed] = -1;
- recProt[currMed] = 0;
- } catch(e) {
- alert("Delete Recordings problem: " + e);
+ if (get_recordings == 1) {
+ try {
+ xmlhttp=new XMLHttpRequest();
+ xmlhttp.open("POST",(server_ip + recServ + "/deleteRecording.xml?id=" + recGUID[currMed] ),false);
+ xmlhttp.send();
+ recList[currMed] = "";
+ recGroup[currMed] = -1;
+ recProt[currMed] = 0;
+ } catch(e) {
+ alert("Delete Recordings problem: " + e);
+ }
+ } else if (get_recordings == 0) {
+// try {
+// xmlhttp=new XMLHttpRequest();
+// xmlhttp.open("DELETE",(server_ip + RestFulAPI + "/recordings/" + recGUID[currMed] ),true);
+// xmlhttp.send();
+// recList[currMed] = "";
+// recGroup[currMed] = -1;
+// recProt[currMed] = 0;
+// } catch(e) {
+// alert("Delete Recordings problem: " + e);
+// }
+//
}
}
diff --git a/settings.js b/settings.js
index c072efb..37e3de5 100644
--- a/settings.js
+++ b/settings.js
@@ -17,8 +17,8 @@ lang_prio = new Array("dut,eng,und","ger,deu,eng","eng,und","fre,fra,eng");
var subs_prio = "dut,eng"; //Subtitle prio
var get_timer = 1; // gettimersserver 1 = smarttvweb, 0 = restfulapi
-var get_recordings = 2; // getrecordings 0 = restfulapi(only showing no play), 1 = smarttvweb, 2 = streamdev
-var get_marks = 1; // getmarks 1 = smarttvweb, 0 = restfulapi
+var get_recordings = 1; // getrecordings 0 = restfulapi(only showing no play), 1 = smarttvweb, 2 = streamdev
+var get_marks = 1;// getmarks 1 = smarttvweb, 0 = restfulapi
var UseNewReclist = 1 ; //use new recordingslist function