summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2014-06-05 23:33:27 +0200
committerM. Voerman <rekordc@gmail.com>2014-06-05 23:33:27 +0200
commit57926bb755d132a231edd849ed99ad6344ae4bfe (patch)
tree62f6404da927e9c4b864635db77f9c181c518995 /index.html
parent0f77bf41ee403ca367154b9a8f4986305fc71796 (diff)
downloadvdr-vipclient-57926bb755d132a231edd849ed99ad6344ae4bfe.tar.gz
vdr-vipclient-57926bb755d132a231edd849ed99ad6344ae4bfe.tar.bz2
Fastzapping delay
convert script fix
Diffstat (limited to 'index.html')
-rw-r--r--index.html45
1 files changed, 16 insertions, 29 deletions
diff --git a/index.html b/index.html
index 59c1989..dd41d12 100644
--- a/index.html
+++ b/index.html
@@ -447,40 +447,27 @@ try {
function play(uri) {
try {
- if (initialDelayID != -1) {
- clearTimeout(initialDelayID);
- initialDelayID = -1;
- }
- if (mediaPlayer.getState() != mediaPlayer.STATE_IDLE) {
- mediaPlayer.close();
- }
-
- if (isSchedule) { schedule.style.opacity = 0; isSchedule = 0;}
- if (epgactive) { osdepginfo.style.opacity = 0; osdepginfonext.style.opacity = 0; epgactive = 0;}
+ if (initialDelayID != -1) { clearTimeout(initialDelayID); initialDelayID = -1; }
+ if (PlayDelayID != -1) { clearTimeout(PlayDelayID); PlayDelayID = -1; }
+ if (initialDelayPlayID != -1) { clearTimeout(initialDelayPlayID); initialDelayPlayID = -1; }
- if (ServerAdres[ChanGroup] == "MultiCast" ) {
- SI=channels[currChan].split("-");
- uri = SI[4];
- } else if (ServerAdres[ChanGroup] == "FullURL" ) {
- // uri = ready!
- } else {
- uri = ServerAdres[ChanGroup] + uri;
- }
+ if (mediaPlayer.getState() != mediaPlayer.STATE_IDLE) { mediaPlayer.close(); }
+ if (isSchedule) { schedule.style.opacity = 0; isSchedule = 0;}
+ if (epgactive) { osdepginfo.style.opacity = 0; osdepginfonext.style.opacity = 0; epgactive = 0;}
- if (initialDelayPlayID != -1) {
- clearTimeout(initialDelayPlayID);
- initialDelayPlayID = -1;
- }
+ if (ServerAdres[ChanGroup] == "MultiCast" ) { SI=channels[currChan].split("-"); uri = SI[4];
+ } else if (ServerAdres[ChanGroup] == "FullURL" ) { // uri = ready!
+ } else { uri = ServerAdres[ChanGroup] + uri; }
- URL = uri;
- initialDelayPlayID = setTimeout("mediaPlayer.open(URL);mediaPlayer.play(1000);GetEPG(currChan);ExtraStuff();",initialDelayPlay);
- SetLed(1,1,0);
+ URL = uri;
+ initialDelayPlayID = setTimeout("mediaPlayer.open(URL);mediaPlayer.play(1000);GetEPG(currChan);ExtraStuff();",initialDelayPlay);
+ initialDelayPlay = 300; // wait 300 ms before zap to next channel
+ PlayDelayID = setTimeout("initialDelayPlay = 0;",1500);
+ SetLed(1,1,0);
- if(isFullscreen) {
- showOSD();
- }
+ if(isFullscreen) { showOSD(); }
- showDisplay(Right(currChan.toString(),4), false, 100, 0 );
+ showDisplay(Right(currChan.toString(),4), false, 100, 0 );
} catch (e) {
alert("Failed opening stream: " + e);