summaryrefslogtreecommitdiff
path: root/javascript/main.js
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2015-01-09 13:48:00 +0100
committerM. Voerman <rekordc@gmail.com>2015-01-09 13:48:00 +0100
commitdf34b4d6276784a22eb87043df0e7b03baf520fb (patch)
tree42158b9e22df03428e5280aafe8a07040556b684 /javascript/main.js
parent7531104afce21fc4bc503207439fd3ae77ab137f (diff)
downloadvdr-vipclient-df34b4d6276784a22eb87043df0e7b03baf520fb.tar.gz
vdr-vipclient-df34b4d6276784a22eb87043df0e7b03baf520fb.tar.bz2
TXT fixes, retry in case of error
Diffstat (limited to 'javascript/main.js')
-rw-r--r--javascript/main.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/javascript/main.js b/javascript/main.js
index bd790f8..d6bd315 100644
--- a/javascript/main.js
+++ b/javascript/main.js
@@ -2079,18 +2079,18 @@ function embedTeletextPlugin() {
teletext.id = "teletext";
teletext.type = "application/motorola-teletext-plugin";
teletext.style.position = "absolute";
- teletext.style.width = "100%";
teletext.style.height = "100%";
teletext.style.top = "10px"; // has to be 1 rather than 0
teletext.style.left = "10px"; // has to be 1 rather than 0
teletext.style.zIndex = "501";
teletext.style.visibility = "hidden";
- document.body.appendChild(teletext);
+ return teletext;
}
function setVisible(isVisible) {
if (isVisible) {
+ document.body.appendChild(teletext);
if (txtfull_screen) {
teletext.style.width = "100%";
} else {
@@ -3359,12 +3359,12 @@ if (MPDListener == 0) {
if (ev.reason == "CommandClose" && ErrorAgain == 0) {
setTimeout("mediaPlayer.open(URL);mediaPlayer.play(1000);GetEPG(currChan);ExtraStuff();",500);
ErrorAgain = 1;
- //} else if (ev.reason == "CommandClose" && ErrorAgain == 1) {
- // setTimeout("mediaPlayer.open(URL);mediaPlayer.play(1000);GetEPG(currChan);ExtraStuff();",105000);
- // ErrorAgain = 2;
+ } else if (KeepTrying) {
+ ErrorAgain = 0;
+ setTimeout("mediaPlayer.close();mediaPlayer.open(URL);mediaPlayer.play(1000);GetEPG(currChan);ExtraStuff();",TryingInterval);
} else {
ErrorAgain = 0;
- alert("Media player state changed: state=" + ev.state + ", reason=" + ev.reason + ", code=" + ev.code);
+ //alert("Media player state changed: state=" + ev.state + ", reason=" + ev.reason + ", code=" + ev.code);
showDisplay("ERRR", false, 100, 0 );
if (experimental) {
settimer(0,ev.reason,0,2,color_error);
@@ -3373,7 +3373,6 @@ if (MPDListener == 0) {
}
}
}
-
} else {
if ( ev.state == 6 && ev.reason == "HostUnreachable" ) {
showDisplay("ERRR", false, 100, 0 );