From 880cca4733f4669b0541c745ef56e84ef5a09ac6 Mon Sep 17 00:00:00 2001 From: drigato Date: Wed, 15 Apr 2015 13:21:54 -0400 Subject: [PATCH] SAAS-715: Indicate errors on the player Fix error handling in flash mode --- airtime_mvc/application/views/scripts/embed/player.phtml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/views/scripts/embed/player.phtml b/airtime_mvc/application/views/scripts/embed/player.phtml index ae3a010d6..01543cd0d 100644 --- a/airtime_mvc/application/views/scripts/embed/player.phtml +++ b/airtime_mvc/application/views/scripts/embed/player.phtml @@ -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"); }