summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--History5
-rw-r--r--channels6.js2
-rw-r--r--index.html124
-rw-r--r--settings.js3
4 files changed, 86 insertions, 48 deletions
diff --git a/History b/History
index 984c2f4..dc9eeb7 100644
--- a/History
+++ b/History
@@ -10,9 +10,10 @@ VDR 1.7.29
Updated channels.conf
SmartwebTV timer handling added (No more restfulapi needed for timers)
Info about audio/video in Infobox when playing Recording
+ Date/Time info during play
Update dutch tv/radio channels on 19E
-
-
+ More info for SearchTimer
+ audio/subs type only from "Onload" function for now. (Need the space in the settings menu)
0.21 Language in sepate file, link your lang_XXX.js to language.js to activate it.
diff --git a/channels6.js b/channels6.js
index 9f24693..666298d 100644
--- a/channels6.js
+++ b/channels6.js
@@ -84,7 +84,7 @@ channels[6039]="S23.5E-3-3208-7037";
channelsnames[6040] = "HUSTLER HD-3D (S)";
channels[6040]="S13.0E-318-15800-16933";
channelsnames[6041] = "DARING TV (S)";
-channels[6041]="S13.0E-318-15800-16931";
+channels[6041]="S13.0E-318-13300-4960";
channelsnames[6043]="Playboy TV (S)";
channels[6043]="S13.0E-318-12100-7513";
channelsnames[6044]="Blue Hustler (S)";
diff --git a/index.html b/index.html
index 64521ca..07df95c 100644
--- a/index.html
+++ b/index.html
@@ -20,7 +20,7 @@
//
//
-var Version = "0.22.5"
+var Version = "0.22.6"
for (var x = 0; x < 10; x++) {
searchtimers[x] = "" ; // To solve displaying undefined
@@ -65,6 +65,15 @@ function onLoad() {
// No 19x3 so better turn fullupdate EPG off
}
+ try {
+ if (!toi.informationService.getObject("vip.serveraddress")) {} //test for settings, create if not excists.
+ } catch(e) {
+ // toi.informationService.setObject("vip.*","0",toi.informationService.STORAGE_PERMANENT)
+ toi.informationService.setObject("vip.serveraddress","0",toi.informationService.STORAGE_PERMANENT)
+ }
+
+ //var server_ip = server_ip_array[Number(toi.informationService.getObject("vip.serveraddress"))];
+
if (mediaRecorder) {
createRecorder();
@@ -78,6 +87,15 @@ function onLoad() {
toi.schedulerService.addEventListener(toi.schedulerService.ON_SCHEDULED_STOP, onScheduledStop);
toi.schedulerService.setCategorySubscription(onScheduledStart, "*");
toi.schedulerService.setCategorySubscription(onScheduledStop, "*");
+
+ //if needed types can be set here. Default of the box is normal.
+ //is = toi.informationService;
+ //is.setObject("cfg.media.subtitling.typepriority","hearing_impaired",is.STORAGE_PERMANENT);
+ //is.setObject("cfg.media.subtitling.typepriority","normal",is.STORAGE_PERMANENT);
+ //is.setObject("cfg.media.audio.typepriority","normal",is.STORAGE_PERMANENT);
+ //is.setObject("cfg.media.audio.typepriority","hearing_impaired",is.STORAGE_PERMANENT);
+ //is.setObject("cfg.media.audio.typepriority","visually_impaired",is.STORAGE_PERMANENT);
+
setOSDtimer();
showOSD();
@@ -1184,6 +1202,27 @@ function date_time()
return;
}
+function date_time_rec()
+{
+ date = new Date(Number(recStrt[currMed])*1000);
+ year = date.getFullYear();
+ month = date.getMonth();
+ month = addzero(month);
+ d = date.getDate();
+ d = addzero(d);
+ day = date.getDay();
+ h = date.getHours();
+ m = date.getMinutes();
+ h = addzero(h);
+ m = addzero(m);
+ if (year!==1970) {
+ result = ' ' + d + '-' + month + '-' + year + ' ' + h + ':' + m;
+ } else {
+ result = "";
+ }
+ return;
+}
+
// EPG Section
function GetEPG(epgchan)
@@ -1871,6 +1910,10 @@ function onKeyMenu(keyCode) {
}
break;
case "Green":
+ if (menu == 0) {
+ //change ip server
+ InitMenu(menu);
+ }
break;
case "Yellow":
break;
@@ -1932,12 +1975,12 @@ function onKeyMenu(keyCode) {
if (menu == 1) {
is = toi.informationService;
- if(substype == 0 ) {
- is.setObject("cfg.media.subtitling.typepriority","hearing_impaired",is.STORAGE_PERMANENT);
- substype = 1;
+ if(subsmode == 0 ) {
+ is.setObject("cfg.media.subtitling.modepriority","Teletext,DVB",is.STORAGE_PERMANENT);
+ subsmode = 1;
} else {
- is.setObject("cfg.media.subtitling.typepriority","normal",is.STORAGE_PERMANENT);
- substype = 0;
+ is.setObject("cfg.media.subtitling.modepriority","DVB,Teletext",is.STORAGE_PERMANENT);
+ subsmode = 0;
}
}
InitMenu(menu);
@@ -1949,16 +1992,20 @@ function onKeyMenu(keyCode) {
mainmenu.style.opacity = 0;
setTimeout("getSchedule(currChan);LoadMediaSettings();",100);
} else if (menu == 1) {
+ audio = audio + 1;
is = toi.informationService;
- if(subsmode == 0 ) {
- is.setObject("cfg.media.subtitling.modepriority","Teletext,DVB",is.STORAGE_PERMANENT);
- subsmode = 1;
- } else {
- is.setObject("cfg.media.subtitling.modepriority","DVB,Teletext",is.STORAGE_PERMANENT);
- subsmode = 0;
+ if(audio == 1) {
+ is.setObject("cfg.media.audio.languagepriority","dut,eng,und",is.STORAGE_PERMANENT);
+ } else if(audio == 2) {
+ is.setObject("cfg.media.audio.languagepriority","ger,deu,eng",is.STORAGE_PERMANENT);
+ } else if(audio == 3) {
+ is.setObject("cfg.media.audio.languagepriority","eng,swe,und",is.STORAGE_PERMANENT);
+ } else if(audio == 4) {
+ is.unsetObject("cfg.media.audio.languagepriority",is.STORAGE_PERMANENT);
+ audio = 0;
}
+ InitMenu(menu);
}
- InitMenu(menu);
break;
case KEY_4:
if (menu == 0) {
@@ -1970,17 +2017,8 @@ function onKeyMenu(keyCode) {
}
if (menu == 1) {
- audiotype = audiotype + 1;
- is = toi.informationService;
- if(audiotype == 1) {
- is.setObject("cfg.media.audio.typepriority","normal",is.STORAGE_PERMANENT);
- } else if(audiotype == 2) {
- is.setObject("cfg.media.audio.typepriority","hearing_impaired",is.STORAGE_PERMANENT);
- } else if(audiotype == 3) {
- is.setObject("cfg.media.audio.typepriority","visually_impaired",is.STORAGE_PERMANENT);
- audiotype = 0;
- }
- InitMenu(menu);
+ //Init here. menu = 0 don't need init!
+ InitMenu(menu);
}
break;
case KEY_5:
@@ -1992,20 +2030,18 @@ function onKeyMenu(keyCode) {
}
if (menu == 1) {
- audio = audio + 1;
- is = toi.informationService;
- if(audio == 1) {
- is.setObject("cfg.media.audio.languagepriority","dut,eng,und",is.STORAGE_PERMANENT);
- } else if(audio == 2) {
- is.setObject("cfg.media.audio.languagepriority","ger,deu,eng",is.STORAGE_PERMANENT);
- } else if(audio == 3) {
- is.setObject("cfg.media.audio.languagepriority","eng,swe,und",is.STORAGE_PERMANENT);
- } else if(audio == 4) {
- is.unsetObject("cfg.media.audio.languagepriority",is.STORAGE_PERMANENT);
- audio = 0;
- }
+// var x = toi.informationService.getObject("vip.serveraddress");
+// x = Number(x);
+// if (x < (server_ip_array.length -1)) { x = x + 1} else { x = 0 }
+// toi.informationService.setObject("vip.serveraddress",x.toString(),toi.informationService.STORAGE_PERMANENT);
+
+// server_ip = server_ip_array[x];
+// for (var i=0;i<10;i++) {
+// if (ServerAdres[i] !== "FullURL" && ServerAdres[i] !== "MultiCast") {ServerAdres[i] = server_ip + ":3000/";}
+// }
+
+// InitMenu(menu);
}
- InitMenu(menu);
break;
case KEY_6:
if (menu == 0) {
@@ -2023,8 +2059,8 @@ function onKeyMenu(keyCode) {
showClock = 0;
showDisplay((currChan.toString()), false, 100, 0 );
}
+ InitMenu(menu);
}
- InitMenu(menu);
break;
case KEY_7:
if (menu == 0) {
@@ -2066,8 +2102,8 @@ function onKeyMenu(keyCode) {
} else if(SwitchGuide == 1 ) {
SwitchGuide = 0;
}
+ InitMenu(menu);
}
- InitMenu(menu);
break;
case KEY_9:
if (menu == 0 || menu == 3) {
@@ -2130,7 +2166,7 @@ if(menu == 6) { // Main Menu when watching recording
if(menu == 1) { // settings menu
var htmltext = "<h1><center style='font-size:" + fsMenuMain + ";color:white;'>" + Lang[10] + "</center></h1><pre style='color:black;font-size:" + fsMenu + ";'> 1 - ";
if (ShowSubs) { htmltext = htmltext + "\uE017"; } else { htmltext = htmltext + "\uE016"; }
- htmltext = htmltext + Lang[20] + "\n 2 - \uE003" + Lang[21] + "\uE003\uE003\uE003: " + (toi.informationService.getObject("cfg.media.subtitling.typepriority")) + "\n 3 - \uE003" + Lang[22] + "\uE003\uE003\uE003: " + (toi.informationService.getObject("cfg.media.subtitling.modepriority")) + "\n 4 - \uE003" + Lang[23] + "\uE003\uE003\uE003: " + Left(toi.informationService.getObject("cfg.media.audio.typepriority"),20) + "\n 5 - \uE003" + Lang[24] + "\uE003\uE003\uE003: " + (toi.informationService.getObject("cfg.media.audio.languagepriority")) + "\n 6 - ";
+ htmltext = htmltext + Lang[20] + "\n 2 - \uE003" + Lang[22] + "\uE003\uE003\uE003: " + (toi.informationService.getObject("cfg.media.subtitling.modepriority")) + "\n 3 - \uE003" + Lang[24] + "\uE003\uE003\uE003: " + (toi.informationService.getObject("cfg.media.audio.languagepriority")) + "\n 4 - \uE003" + "\n 5 - " + "\n 6 - ";
if (showClock) { htmltext = htmltext + "\uE017"; } else { htmltext = htmltext + "\uE016"; }
htmltext = htmltext + Lang[25] + "\n 7 - ";
if (ShowProtectedChannels) { htmltext = htmltext + "\uE017"; } else { htmltext = htmltext + "\uE016"; }
@@ -2179,7 +2215,8 @@ if(menu == 4) { // INFO Menu
htmltext = htmltext + "\n Product name: " + is.getObject("config.productdisplayname");
htmltext = htmltext + "\n Build date : " + is.getObject("config.build.date");
- htmltext = htmltext + "\n\n IP address:" + is.getObject("config.ipaddress");
+ htmltext = htmltext + "\n\n IP address : " + is.getObject("config.ipaddress");
+ htmltext = htmltext + "\n VDR address : " + server_ip + "\n";
var x = is.getObject("cfg.ip.eth0.mode");
if (x == "DHCP") { htmltext = htmltext + "\n \uE017 "; } else { htmltext = htmltext + "\n \uE016 "; }
htmltext = htmltext + "DHCP";
@@ -2547,8 +2584,6 @@ function ShowSearchTimerInfo() {
}
-
-
// End of Menu section
// MPD Section
@@ -3737,7 +3772,8 @@ function ShowMediaOSD() {
if (pos/60 > x) { x = (pos/60).toFixed(0);}
date_time();
osdtime.innerHTML = result;
- osdmedia.innerHTML = "<pre style='color:white;font-size:" + fsMedia +";'> \n " + (pos/60).toFixed(0) + " / " + x + " " + Left(recTitl[currMed],40) + "\n " + pos4 + " </pre>";
+ date_time_rec();
+ osdmedia.innerHTML = "<pre style='color:white;font-size:" + fsMedia +";'> \n " + (pos/60).toFixed(0) + " / " + x + " " + Left(recTitl[currMed],40) + "\n " + pos4 + "\n " + result + " </pre>";
}
function ShowInfo() {
diff --git a/settings.js b/settings.js
index bc7e487..4ecac75 100644
--- a/settings.js
+++ b/settings.js
@@ -9,8 +9,9 @@
// 1920x1080
var Xfactor = 1920 / 720; var Yfactor = 1080 / 576;
+server_ip_array = new Array("http://192.168.1.15","http://192.168.3.15","http://192.168.3.100");
-var server_ip = "http://192.168.3.15";
+var server_ip = server_ip_array[1]; // default server
var StartVolume = 15; // Volume on (re)start of the portal.
var currChan = 10; // default channel