diff --git a/js/cast.js b/js/cast.js index 07ff251..1a77b33 100644 --- a/js/cast.js +++ b/js/cast.js @@ -44,8 +44,9 @@ var castModule = (function () { session.stop(onStopCast, onStopCastError); } - function onMediaError() { + function onMediaError(e) { stopCast(); + throw e.description; } function onRequestSessionSuccess(e) {