summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2016-10-09 23:56:22 +0200
committerM. Voerman <rekordc@gmail.com>2016-10-09 23:56:22 +0200
commit705f1e029b0221326aca0a8aa7cf54fc1637ae3b (patch)
tree682f0671d846377b579f25591e533ebba330d6c4
parent052f691a73031bea72f9f371ba4387e922784452 (diff)
downloadvdr-vipclient-705f1e029b0221326aca0a8aa7cf54fc1637ae3b.tar.gz
vdr-vipclient-705f1e029b0221326aca0a8aa7cf54fc1637ae3b.tar.bz2
Hopefully fixed the blackscreen bug switching channel after error
-rw-r--r--javascript/main.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/javascript/main.js b/javascript/main.js
index 2ec0d2a..3a0858e 100644
--- a/javascript/main.js
+++ b/javascript/main.js
@@ -520,9 +520,10 @@ function play(uri) {
if (Delay_Play == 1) {
if (initialDelayID != -1) { clearTimeout(initialDelayID); initialDelayID = -1; }
if (PlayDelayID != -1) { clearTimeout(PlayDelayID); PlayDelayID = -1; }
- if (initialDelayPlayID != -1) { clearTimeout(initialDelayPlayID); initialDelayPlayID = -1; }
}
+ if (initialDelayPlayID != -1) { clearTimeout(initialDelayPlayID); initialDelayPlayID = -1; }
+
if (mediaPlayer.getState() != mediaPlayer.STATE_IDLE) { mediaPlayer.close(); }
if (isSchedule) { schedule.style.opacity = 0; isSchedule = 0;}
if (epgactive) { epg_unactive();}
@@ -3598,7 +3599,7 @@ function MPD(ev) {
if (MPDListener == 0) {
if (ev.state == 6 ) {
if (ev.reason == "CommandClose" && ErrorAgain == 0) {
- setTimeout("mediaPlayer.open(URL);mediaPlayer.play(1000);GetEPG(currChan);ExtraStuff();",initialDelayPlay);
+ initialDelayPlayID = setTimeout("mediaPlayer.open(URL);mediaPlayer.play(1000);GetEPG(currChan);ExtraStuff();",TryingInterval);
ErrorAgain = 1;
} else if (KeepTrying) {
ErrorAgain = 0;