From 041678dc99501e5685354c2f09b697d355c68a71 Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Fri, 27 Jun 2014 23:51:34 +0200 Subject: Delay for PIP sessions --- index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index 678fd65..9c83c27 100644 --- a/index.html +++ b/index.html @@ -427,6 +427,7 @@ try { if (pipPlayer.getState() != pipPlayer.STATE_IDLE) { pipPlayer.close(); } + if (PIPDelayID != -1) { clearTimeout(PIPDelayID); PIPDelayID = -1; } if (ServerAdres[ChanGroup] == "MultiCast" ) { SI=channels[currChan].split("-"); @@ -437,7 +438,7 @@ try { uri = ServerAdres[ChanGroup] + uri; } pipPlayer.open(uri); - setTimeout("pipPlayer.play(1000);", 500); + PIPDelayID = setTimeout("pipPlayer.play(1000);", 500); } catch (e) { alert("Failed opening PIP stream: " + e); return; @@ -3229,9 +3230,12 @@ function ShowSearchTimerInfo() { // MPD Section function MPD(ev) { -// alert("Media player state changed: state=" + ev.state + ", reason=" + ev.reason); // + ", code=" + ev.code); +// alert("Media player state changed: " + ev); +// alert("Media player state changed: state=" + ev.state + ", reason=" + ev.reason + ", code=" + ev.code); +// alert("Media player error :" + mediaPlayer.getError().details); if (MPDListener == 0) { if (ev.state == 6 ) { + alert("Media player state changed: state=" + ev.state + ", reason=" + ev.reason + ", code=" + ev.code); showDisplay("ERRR", false, 100, 0 ); settimer(0,Lang[67],0,2); } -- cgit v1.2.3