SAAS-715: Indicate errors on the player
Fix error handling in flash mode
This commit is contained in:
parent
66a236a842
commit
880cca4733
|
@ -180,7 +180,6 @@
|
||||||
|
|
||||||
// detects errors in FLASH mode
|
// detects errors in FLASH mode
|
||||||
function musesCallback(event,value) {
|
function musesCallback(event,value) {
|
||||||
console.log(event+" - "+value);
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case "ioError":
|
case "ioError":
|
||||||
// problem connecting to stream
|
// problem connecting to stream
|
||||||
|
@ -203,7 +202,10 @@
|
||||||
} else {
|
} else {
|
||||||
// If in manual mode and there is a problem connecting to
|
// If in manual mode and there is a problem connecting to
|
||||||
// the stream display an error and stop play back.
|
// the stream display an error and stop play back.
|
||||||
togglePlayStopButton();
|
MRP.stop();
|
||||||
|
if ($("#play_button").hasClass("hide_button")) {
|
||||||
|
togglePlayStopButton();
|
||||||
|
}
|
||||||
clearTimeout(metadataTimer);
|
clearTimeout(metadataTimer);
|
||||||
$("p.now_playing").html("Error - Try again later");
|
$("p.now_playing").html("Error - Try again later");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue