Throw error when media can't be played
This commit is contained in:
parent
6208754e22
commit
367eccb515
1 changed files with 2 additions and 1 deletions
|
@ -44,8 +44,9 @@ var castModule = (function () {
|
||||||
session.stop(onStopCast, onStopCastError);
|
session.stop(onStopCast, onStopCastError);
|
||||||
}
|
}
|
||||||
|
|
||||||
function onMediaError() {
|
function onMediaError(e) {
|
||||||
stopCast();
|
stopCast();
|
||||||
|
throw e.description;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onRequestSessionSuccess(e) {
|
function onRequestSessionSuccess(e) {
|
||||||
|
|
Loading…
Reference in a new issue