From 367eccb5152d51459e95ca801279e5f13b35c925 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Wed, 22 Jun 2016 12:58:54 +0200 Subject: [PATCH] Throw error when media can't be played --- js/cast.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {