Throw error when media can't be played

This commit is contained in:
Pierre Rudloff 2016-06-22 12:58:54 +02:00
parent 6208754e22
commit 367eccb515

View file

@ -44,8 +44,9 @@ var castModule = (function () {
session.stop(onStopCast, onStopCastError);
}
function onMediaError() {
function onMediaError(e) {
stopCast();
throw e.description;
}
function onRequestSessionSuccess(e) {