summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2013-02-07 22:12:34 +0100
committerM. Voerman <rekordc@gmail.com>2013-02-07 22:12:34 +0100
commita97d2e56a38e511e46481c9a354bfa265eb1e195 (patch)
tree37a8160d72a0212611dfc51a3bae6d7119127502
parent3917e34465adc7a7f8d8087d3f9f673f940a0061 (diff)
downloadvdr-vipclient-a97d2e56a38e511e46481c9a354bfa265eb1e195.tar.gz
vdr-vipclient-a97d2e56a38e511e46481c9a354bfa265eb1e195.tar.bz2
Now also the media menu from "VDR on SmartTV" plugin is supported
-rw-r--r--channels5.js26
-rw-r--r--index.html12
-rw-r--r--settings.js1
3 files changed, 33 insertions, 6 deletions
diff --git a/channels5.js b/channels5.js
index 5511ce3..2e70b23 100644
--- a/channels5.js
+++ b/channels5.js
@@ -4,7 +4,7 @@
// MultiCast
minChan[5] = 5001;
-defChan[5] = 5009;
+defChan[5] = 5008;
baseChn[5] = 5000;
protChn[5] = 1;
ServerAdres[5] = "MultiCast";
@@ -27,8 +27,26 @@ channelsnames[5007] = "RTL7 (S)";
channels[5007] = "S19.2E-53-1097-2006-239.255.0.7:11111";
channelsnames[5008] = "Veronica/DisneyXD (S)";
channels[5008] = "S19.2E-53-1097-2031-239.255.0.8:11111";
-channelsnames[5009] = "Live Stream TEST";
-channels[5009] = "Internet-0-0-0-http://mp3.webradio.antenne.de";
-maxChan[5] = 5009; // set to max multicast channel else you see 'undefined' in guide view
+maxChan[5] = 5008; // set to max multicast channel else you see 'undefined' in guide view
+
+//
+// Full URL TEST
+//
+
+minChan[2] = 2001;
+defChan[2] = 2001;
+baseChn[2] = 2000;
+protChn[2] = 0;
+ServerAdres[2] = "FullURL";
+// MultiCast, channels[x] layout DVB(Satposition, C or T)-NID-TID-SID-multicast address
+
+
+channelsnames[2001] = "YouTube 1080p";
+channels[2001] = "http://r5---sn-h0j7sn76.c.youtube.com/videoplayback?itag=37&ip=92.73.12.87&key=yt1&upn=bTPjGgbx5_4&cp=U0hVRVFLVl9GTUNONV9JRVpGOmozTmpPZFEtVk5E&source=youtube&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&ipbits=8&ratebypass=yes&mv=m&mt=1360086794&ms=au&id=2707c2440b646042&fexp=927101%2C916807%2C900222%2C916625%2C902538%2C920704%2C912806%2C902000%2C922403%2C922405%2C929901%2C913605%2C925710%2C929114%2C920201%2C913302%2C919009%2C911116%2C910221%2C901451%2C919114&newshard=yes&expire=1360108513&sver=3&signature=2580F86F2429B02B80F1D2F6941A2B12B0D11177.A18842DF82FA7DBC1494B7C4CF9C1949C59FB335&title=Revolution%20-%20Trailer";
+channelsnames[2002] = "YouTube 720p";
+channels[2002] = "http://192.168.3.15:8000/media/videos/Doro and Lemmy Kilmister Love Me Forever Live 2003 HD.mp4";
+
+maxChan[2] = 2002; // set to max multicast channel else you see 'undefined' in guide view
+
diff --git a/index.html b/index.html
index 2930fd1..b3967f1 100644
--- a/index.html
+++ b/index.html
@@ -179,6 +179,8 @@ function play(uri) {
if (ServerAdres[ChanGroup] == "MultiCast" ) {
SI=channels[currChan].split("-");
uri = SI[4];
+ } else if (ServerAdres[ChanGroup] == "FullURL" ) {
+ // uri = ready!
} else {
uri = ServerAdres[ChanGroup] + uri;
}
@@ -1543,6 +1545,7 @@ function onKeyMenu(keyCode) {
isSetupMenu = 0;
mediaList.style.opacity = 0.9;
mainmenu.style.opacity = 0;
+ recPath = "/recordings.xml";
setTimeout("getRecList();LoadMediaSettings();",100);
}
if (menu == 1) {
@@ -1632,6 +1635,11 @@ function onKeyMenu(keyCode) {
break;
case KEY_8:
if (menu == 0) {
+ isSetupMenu = 0;
+ mediaList.style.opacity = 0.9;
+ mainmenu.style.opacity = 0;
+ recPath = "/media.xml";
+ setTimeout("getRecList();LoadMediaSettings();",100);
}
if (menu == 1) {
@@ -1691,7 +1699,7 @@ function onKeyMenu(keyCode) {
function InitMenu(menu) {
if(menu == 0) { // Main Menu
- mainmenu.innerHTML = "<h1><center style='font-size:" + fsMenuMain + ";color:white;'> MainMenu \n ( " + Version + " )</center></h1><pre style='color:black;font-size:" + fsMenu + ";'> 1 - Settings \n 2 - Recordings \n 3 - Timers\n 4 - Timers from Server\n\n\n\n\n 9 - MPD Server Connection\n\n BLUE - Restart Portal </pre>";
+ mainmenu.innerHTML = "<h1><center style='font-size:" + fsMenuMain + ";color:white;'> MainMenu \n ( " + Version + " )</center></h1><pre style='color:black;font-size:" + fsMenu + ";'> 1 - Settings \n 2 - Recordings \n 3 - Timers\n 4 - Timers from Server\n\n\n\n 8 - Media Directory\n 9 - MPD Server Connection\n\n BLUE - Restart Portal </pre>";
}
if(menu == 1) { // settings menu
@@ -2264,7 +2272,7 @@ function getRecList() {
getVDRstatus();
try {
xmlhttp=new XMLHttpRequest();
- xmlhttp.open("GET",(recServ + "/recordings.xml?" + new Date().getTime()),false);
+ xmlhttp.open("GET",(recServ + recPath + "?" + new Date().getTime()),false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
var x=xmlDoc.getElementsByTagName("item");
diff --git a/settings.js b/settings.js
index bda9c08..f2b4469 100644
--- a/settings.js
+++ b/settings.js
@@ -67,6 +67,7 @@ var channelsepglang = new Array();
var currMed = 0;
var listMed = 0;
var DelisOK = 0;
+var recPath = "/recordings.xml";
var menu = 0;
var isMediaMenu = 0;