From 0f77bf41ee403ca367154b9a8f4986305fc71796 Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Thu, 5 Jun 2014 01:24:51 +0200 Subject: Zaptime delay --- index.html | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'index.html') 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 = "
\n" + Lang[90] +"\n\n
"; // 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 = "
\n" + Lang[90] +"\n\n
"; // 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 ) { -- cgit v1.2.3