summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2012-12-22 16:40:20 +0100
committerM. Voerman <rekordc@gmail.com>2012-12-22 16:40:20 +0100
commitbcb9210134a1e80deb723e14377bdf53e3df9cbc (patch)
tree2624032ba7464bdd09ee5e955a4e540e61ac29c3
parent8d001c155147d4f7d276a1fd6bda72eb1b03064f (diff)
downloadvdr-vipclient-bcb9210134a1e80deb723e14377bdf53e3df9cbc.tar.gz
vdr-vipclient-bcb9210134a1e80deb723e14377bdf53e3df9cbc.tar.bz2
Colorkeys and more OSD fixes
-rw-r--r--History4
-rw-r--r--index.html40
-rw-r--r--settings.js14
-rw-r--r--settings2.js7
4 files changed, 43 insertions, 22 deletions
diff --git a/History b/History
index b7495fd..5a80d26 100644
--- a/History
+++ b/History
@@ -1,6 +1,10 @@
0.05 OSD 1920x1088 (16:9) // OSD 1280x720 (16:9) // OSD 704x576 (16:9) But should work on other size too.
EPG language routine expanded. Works for (almost) all german channels now.
Epg on Dvb-t defaults to Dutch.
+ Added toFixed on Schedule page.
+ Fixed colorkeys in some view.
+ Subs can be switched off from the menu.
+
0.04 Volume OSD bar
Media Player added.
diff --git a/index.html b/index.html
index 2bccb9d..f3c0701 100644
--- a/index.html
+++ b/index.html
@@ -26,8 +26,6 @@
// change IP server
//
//
-// videoplane.subtitles = true; // Enable subtitles
-// videoplane.subtitles = false; // Disable subtitles
//
var Version = "0.05 2012/12/xx"
@@ -54,8 +52,6 @@ function onLoad() {
colorkeys.innerHTML = "<font color=red>" + NN[4] + "</font><font color=green >" + NN[1] + "</font><font color=yellow> Schedule </font><font color=blue> INFO </font>";
osdvolume.style.fontSize = fsCA;
osdvolume.style.color = "green";
- osdnr.style.fontSize = fsChan;
- osdnr.style.color = "black";
osdtime.style.fontSize = fsTime;
osdtime.style.color = "white";
osdname.style.fontSize = fsName;
@@ -68,6 +64,7 @@ function onLoad() {
switchtimer.style.fontSize = fsEpg;
osdepginfo.style.fontSize = fsEpginfo;
osdepginfonext.style.fontSize = fsEpginfo;
+ videoplane.subtitles = Boolean(ShowSubs);
}
@@ -140,7 +137,7 @@ function preview(urip) {
}
showChannelList();
if (isSchedule) {
- GetSchedule(currChan,10);
+ //GetSchedule(currChan,10);
}
}
@@ -263,7 +260,7 @@ function onKeyDown(event) {
showClock = 0;
showDisplay((currChan.toString()), false, 100, 0 );
}
- } else {
+ } else if(isSchedule == 0){
if(NowNext) {
settimer();
switchtimer.style.opacity = 1;
@@ -307,7 +304,7 @@ function onKeyDown(event) {
osdepginfo.style.opacity = 1 - osdepginfo.style.opacity ;
osdepginfonext.style.opacity = 1 - osdepginfo.style.opacity;
}
- } else {
+ } else if(isSchedule == 0){
colorkeys.innerHTML = "<font color=red>" + NN[3 + NowNext] + "</font><font color=green>" + NN[NowNext] + "</font><font color=yellow> Schedule </font><font color=blue> INFO </font>";
NowNext = 1 - NowNext;
showChannelList();
@@ -332,14 +329,18 @@ function onKeyDown(event) {
GetSchedule(currChan,10);
schedule.style.opacity = 1 - schedule.style.opacity;
channelList.style.opacity = 1 - schedule.style.opacity;
- colorkeys.style.opacity = 1 - schedule.style.opacity;
isSchedule = schedule.style.opacity;
+ if(isSchedule == 1){
+ colorkeys.innerHTML = "<font color=red>" + NN[4] + "</font><font color=green>" + NN[4] + "</font><font color=yellow> BACK </font><font color=blue>" + NN[4] + "</font>";
+ } else {
+ colorkeys.innerHTML = "<font color=red>" + NN[3 + (1 - NowNext)] + "</font><font color=green>" + NN[1 - NowNext] + "</font><font color=yellow> Schedule </font><font color=blue> INFO </font>";
+ }
}
break;
case "Blue":
if(isFullscreen) {
RestartPortal();
- } else {
+ } else if(isSchedule ==0) {
SetOsdInfo();
osdepginfo.style.opacity = 1 - NowNext;
osdepginfonext.style.opacity = NowNext;
@@ -434,6 +435,7 @@ function onKeyDown(event) {
schedule.style.opacity = 0;
schedule.style.height = "48%";
channelList.style.opacity = 1;
+ colorkeys.innerHTML = "<font color=red>" + NN[3 + (1 - NowNext)] + "</font><font color=green>" + NN[1 - NowNext] + "</font><font color=yellow> Schedule </font><font color=blue> INFO </font>";
colorkeys.style.opacity = 1;
showChannelList();
if(!SwitchGuide) {
@@ -675,6 +677,8 @@ function onCacheUpdated() {
function OSDchannr(channr) {
osdnr.innerHTML = "<center>" + channr + "</center>";
+ osdnr.style.fontSize = fsChan;
+ osdnr.style.color = "black";
}
function OSDhtml(){
@@ -703,7 +707,7 @@ function settimer() {
dateCurrent = new Date();
var StartTime = Math.floor((date.getTime() - dateCurrent.getTime()));
timerChan = currChan;
- TimerActions = "isVisible = 0; isFullscreen = 1; FullScreen(); setVisible(isVisible); currChan = timerChan; play(timerChan); osdtimer.innerHTML = '';SetLed(0,0,0);"
+ TimerActions = "isVisible = 0; isFullscreen = 1; FullScreen(); setVisible(isVisible); currChan = timerChan; play(timerChan); osdtimer.innerHTML = '';SetLed(0,0,0);switchicon = '\uE003';osdca.innerHTML = CAicon + switchicon;"
// only 1 switch timer possible
if(switchtimerID) {
clearTimeout(switchtimerID);
@@ -712,6 +716,8 @@ function settimer() {
switchtimer.innerHTML = "<p> Name : " + EPG[NowNext][1][currChan] + "</p><p> channel : " + channelsnames[currChan] + "</p><p> Starttime : " + th + ":" + tm + "</p>";
osdtimer.innerHTML = "<p style='color:black;font-size:" + fsList + ";'>" + th + ":" + tm + "</p>";
SetLed(0,2,1);
+ switchicon = "\uE00C";
+ osdca.innerHTML = CAicon + switchicon;
} else {
//
// No Switch timer so send timer info to Server
@@ -863,11 +869,12 @@ function GetEPG(epgchan)
eitCache.addService(eitService);
event = eitCache.getPresentEvent(eitService);
if(event.freeCaMode){
- osdca.innerHTML = "\uE00D";
+ CAicon = "\uE00D";
} else {
- osdca.innerHTML = "\uE00F";
+ CAicon = "\uE00F";
}
+ osdca.innerHTML = CAicon + switchicon;
if (event.name) {
events = eitCache.getEvents(eitService, 1000000000, 2000000000);
extEventsnow = eitCache.getExtendedEventInfo(eitService, events.infoSequence[0].eventId);
@@ -1055,7 +1062,7 @@ function GetSchedule(schchan,tablelength){
tm = "0"+tm;
}
- txt = txt + "<td style='font-size:" + fsSchedList + ";'>\uE003\uE003\uE003\uE003\uE003" + th + ":" + tm + " (" + events.infoSequence[i].duration/60 + ") " + events.infoSequence[i].name + "</td></tr>";
+ txt = txt + "<td style='font-size:" + fsSchedList + ";'>\uE003\uE003\uE003\uE003\uE003" + th + ":" + tm + " (" + (events.infoSequence[i].duration/60).toFixed(0) + ") " + events.infoSequence[i].name + "</td></tr>";
}
txt = txt + "</table>";
schedule.innerHTML = "<p style='color:white;font-size:" + fsSched + ";'>" + "\uE003" + schchan + "\uE003" + channelsnames[schchan] + txt + "</p>";
@@ -1271,6 +1278,8 @@ function onKeyMenu(keyCode) {
switchtimerID = 0;
InitMenu();
osdtimer.innerHTML = "";
+ switchicon = "\uE003";
+ osdca.innerHTML = CAicon + switchicon;
SetLed(0,0,0);
break;
case "Blue":
@@ -1294,6 +1303,9 @@ function onKeyMenu(keyCode) {
case KEY_0:
break;
case KEY_1:
+ ShowSubs = 1 - ShowSubs;
+ videoplane.subtitles = Boolean(ShowSubs); // Enable subtitles or Disable subtitles
+ InitMenu();
break;
case KEY_2:
break;
@@ -1315,7 +1327,7 @@ function onKeyMenu(keyCode) {
}
function InitMenu() {
- mainmenu.innerHTML = "<center><p style='font-size:" + fsMenuMain + ";color:white;'> SETTINGS </p><p style='color:red;font-size:" + fsMenu + ";'>Frontdisplay Clock : " + showClock + "</p><p style='color:green;font-size:" + fsMenu + ";'>Prio audio track : " + (toi.informationService.getObject("cfg.media.audio.languagepriority")) + "</p><p style='color:yellow;font-size:" + fsMenu + ";'>Switch timer : " + Boolean(switchtimerID) + "</p><p style='color:blue;font-size:" + fsMenu + ";'>Preview guide : " + SwitchGuide + "</p></center>";
+ mainmenu.innerHTML = "<center><p style='font-size:" + fsMenuMain + ";color:white;'> SETTINGS </p><p style='color:red;font-size:" + fsMenu + ";'>Frontdisplay Clock : " + showClock + "</p><p style='color:green;font-size:" + fsMenu + ";'>Prio audio track : " + (toi.informationService.getObject("cfg.media.audio.languagepriority")) + "</p><p style='color:yellow;font-size:" + fsMenu + ";'>Switch timer : " + Boolean(switchtimerID) + "</p><p style='color:blue;font-size:" + fsMenu + ";'>Preview guide : " + SwitchGuide + "</p><p style='color:black;font-size:" + fsMenu + ";'>1 - Show Subs : " + Boolean(ShowSubs) + "</p></center>";
}
// End of Menu section
diff --git a/settings.js b/settings.js
index 2ad1922..517ef11 100644
--- a/settings.js
+++ b/settings.js
@@ -2,6 +2,14 @@
// or
// init var settings
+// 720x576
+// 1280x720
+// 1920x1080
+
+var Xfactor = 1280 / 720;
+var Yfactor = 720 / 576;
+
+
var channels = new Array();
var channelsnames = new Array();
var channelsepglang = new Array();
@@ -120,12 +128,14 @@ var switchtimerID = 0;
var SwitchTimer = 1; // No other options yet
var initialDelayID = 0;
+var switchicon = "\uE003";
+var CAicon = "\uE00D";
var fsAudio = (16*Yfactor) + "px";
var fsTime = (16*Yfactor) + "px";
var fsName = (27*Yfactor) + "px";
-var fsMenu = (27*Yfactor) + "px";
-var fsChan = (43*Yfactor) + "px";
+var fsMenu = (24*Yfactor) + "px";
+var fsChan = (43*Yfactor) + "px";
var fsCA = (32*Yfactor) + "px";
var fsMenuMain = (48*Yfactor) + "px";
var fsEpg = (19*Yfactor) + "px";
diff --git a/settings2.js b/settings2.js
index 3ce79b1..0da24aa 100644
--- a/settings2.js
+++ b/settings2.js
@@ -5,13 +5,8 @@ var SwitchGuide = 0;
var VideoHDMIOut = HDMI[4];
var VideoScartOut = Scart[1];
var TimeShift = 0; // 0 = no, 1 = yes timeshift
+var ShowSubs = 1; // 0 no, 1 = yes (default)
-// 720x576
-// 1280x720
-// 1920x1080
-
-var Xfactor = 720 / 720;
-var Yfactor = 576 / 576;
months = new Array('January', 'February', 'March', 'April', 'May', 'June', 'Jully', 'August', 'September', 'October', 'November', 'December');
days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');