summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2014-01-07 00:57:29 +0100
committerM. Voerman <rekordc@gmail.com>2014-01-07 00:57:29 +0100
commita4e96e8a052c64fe8b7bc8c8df090d928e267b0a (patch)
tree2c3330f1ccf3f660f6f4b36d758be2438e584c77
parent83b90f4ece1d2ec2171837b611034472a9ea433a (diff)
downloadvdr-vipclient-a4e96e8a052c64fe8b7bc8c8df090d928e267b0a.tar.gz
vdr-vipclient-a4e96e8a052c64fe8b7bc8c8df090d928e267b0a.tar.bz2
SmartwebTV getmarks added (no more restfulapi getmarks)
-rw-r--r--History1
-rw-r--r--index.html11
2 files changed, 8 insertions, 4 deletions
diff --git a/History b/History
index 6ba71f0..ce3bebf 100644
--- a/History
+++ b/History
@@ -19,6 +19,7 @@ VDR 1.7.29 / 2.1.1
Sort the Recordingslist so no double maps are shown
Volume steps are 1, if volume < 5
in EPG/ Guide view you can switch groups with << and >> (Live Update only if 19x3 with pip enabled image)
+ SmartwebTV getmarks added (no more restfulapi getmarks)
0.22 Updated EPG filter for 42E, canal sat (tid 1088), canal+ (tid 1060), CDS (veronica, iConcerts, Animax)
diff --git a/index.html b/index.html
index b911b91..5355330 100644
--- a/index.html
+++ b/index.html
@@ -3469,26 +3469,29 @@ if (UseNewReclist && recPath == "/recordings.xml") {
}
}
+
function GetMarks() {
try {
posMark = 0;
xmlhttp=new XMLHttpRequest();
- xmlhttp.open("GET",(server_ip + RestFulAPI + "/recordings/" + currMed + ".xml?marks=true&" + new Date().getTime()),false);
+ xmlhttp.open("GET",(server_ip + recServ + "/getMarks.xml?guid=" + recGUID[currMed] + "&" + new Date().getTime()),false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
recMark = [];
var x=xmlDoc.getElementsByTagName("mark");
for (var i=0;i<x.length;i++)
{
- var y = x[i].childNodes[0].nodeValue.split(":");
- recMark[i] = Number(y[0]*3600) + Number(y[1]*60) + Number(y[2]);
-// alert(recMark[i]);
+ var y = x[i].childNodes[0].nodeValue.split(",");
+ alert(y);
+ recMark[i] = Number(y[0]);
+ alert(recMark[i]);
}
} catch(e) {
alert("Getting Marks problem: " + e);
}
}
+
function setResume() {
try {
position = position + (mediaPlayer.getPosition()/1000)