summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2014-06-05 01:24:51 +0200
committerM. Voerman <rekordc@gmail.com>2014-06-05 01:24:51 +0200
commit0f77bf41ee403ca367154b9a8f4986305fc71796 (patch)
tree27a5aebcbc1791fdd8dc5b11b074fbcb14be01d9
parentbc8c624294d0413299d69f263da9b14b0f11146c (diff)
downloadvdr-vipclient-0f77bf41ee403ca367154b9a8f4986305fc71796.tar.gz
vdr-vipclient-0f77bf41ee403ca367154b9a8f4986305fc71796.tar.bz2
Zaptime delay
-rw-r--r--History2
-rw-r--r--index.html38
2 files changed, 21 insertions, 19 deletions
diff --git a/History b/History
index ce1d4cf..f566837 100644
--- a/History
+++ b/History
@@ -22,7 +22,7 @@ VDR 1.7.29+
Updated channels script, now adds timestamp to list which is shown in info menu.
EPG Mode can be set (Now/Next only or Full EPG from stream)
Client for MPD (http://www.musicpd.org/) turned off by default (settings.js)
- Timeout before playing the stream. Some times after fast zapping you get an connection error. Now play has 300 ms delay.
+ Timeout before playing the stream. Some times after fast zapping you get an connection error. Now play has 500 ms delay.
support for reccmds.conf (max 9 options can be used) and must be enabled in smarttvweb plugin
in recordings menu key_1 selects reccmds.conf option 1 (In my case move to other HDD script)
diff --git a/index.html b/index.html
index dbece5a..59c1989 100644
--- a/index.html
+++ b/index.html
@@ -473,30 +473,13 @@ function play(uri) {
}
URL = uri;
- initialDelayPlayID = setTimeout("mediaPlayer.open(URL);mediaPlayer.play(1000);GetEPG(currChan);",initialDelayPlay);
+ initialDelayPlayID = setTimeout("mediaPlayer.open(URL);mediaPlayer.play(1000);GetEPG(currChan);ExtraStuff();",initialDelayPlay);
SetLed(1,1,0);
- if(TimeShift){
- initialDelayID = setTimeout("startTimeshiftBuffering();", 5000);
- }
-
if(isFullscreen) {
showOSD();
}
- if(testing2) {
- if (CAdelayID != -1) { clearTimeout(CAdelayID); CAdelayID = -1; switchtimer.style.opacity = 0;}
- if ( (currChan > 10 && currChan < 26 ) || (currChan > 40 && currChan < 50 ) || (currChan > 50 && currChan < 120 ) ||
- (currChan > 151 && currChan < 200) || (currChan > 604 && currChan < 612 ) || (currChan > 624 && currChan < 631) ||
- (currChan > 632 && currChan < 700) || (currChan > 8004 && currChan < 8027) )
- {
- //Show info if set nonfree
- switchtimer.innerHTML = "<pre><center>\n" + Lang[90] +"\n\n </center></pre>"; // Non free channel message
- switchtimer.style.opacity = 1;
- CAdelayID = setTimeout("switchtimer.style.opacity = 0; ",ShowSetTimer);
- }
- }
-
showDisplay(Right(currChan.toString(),4), false, 100, 0 );
} catch (e) {
@@ -665,6 +648,25 @@ if (zero<10)
return zero;
}
+function ExtraStuff(){
+ if(TimeShift){
+ initialDelayID = setTimeout("startTimeshiftBuffering();", 5000);
+ }
+ if(testing2) {
+ if (CAdelayID != -1) { clearTimeout(CAdelayID); CAdelayID = -1; switchtimer.style.opacity = 0;}
+ if ( (currChan > 10 && currChan < 26 ) || (currChan > 40 && currChan < 50 ) || (currChan > 50 && currChan < 120 ) ||
+ (currChan > 151 && currChan < 200) || (currChan > 604 && currChan < 612 ) || (currChan > 624 && currChan < 631) ||
+ (currChan > 632 && currChan < 700) || (currChan > 8004 && currChan < 8027) )
+ {
+ //Show info if set nonfree
+ switchtimer.innerHTML = "<pre><center>\n" + Lang[90] +"\n\n </center></pre>"; // Non free channel message
+ switchtimer.style.opacity = 1;
+ CAdelayID = setTimeout("switchtimer.style.opacity = 0; ",ShowSetTimer);
+ }
+ }
+
+}
+
function startTimeshiftBuffering() {
// check that media player is working
if (mediaPlayer.getState() != mediaPlayer.STATE_PLAYING ) {