SAAS-715: Indicate errors on the player

Fix error handling in flash mode
This commit is contained in:
drigato 2015-04-15 13:21:54 -04:00
parent 66a236a842
commit 880cca4733
1 changed files with 4 additions and 2 deletions

View File

@ -180,7 +180,6 @@
// detects errors in FLASH mode
function musesCallback(event,value) {
console.log(event+" - "+value);
switch (event) {
case "ioError":
// problem connecting to stream
@ -203,7 +202,10 @@
} else {
// If in manual mode and there is a problem connecting to
// the stream display an error and stop play back.
togglePlayStopButton();
MRP.stop();
if ($("#play_button").hasClass("hide_button")) {
togglePlayStopButton();
}
clearTimeout(metadataTimer);
$("p.now_playing").html("Error - Try again later");
}