return result from requestSession method

This commit is contained in:
nklhrstv 2020-05-26 18:50:46 +03:00
parent 2d9f46cbe7
commit c7f9543932

View file

@ -86,7 +86,7 @@ function ChromecastTransport() {
cast.framework.CastContext.getInstance().setOptions(options);
};
this.requestSession = function() {
cast.framework.CastContext.getInstance().requestSession();
return cast.framework.CastContext.getInstance().requestSession();
};
this.endCurrentSession = function(stopCasting) {
cast.framework.CastContext.getInstance().endCurrentSession(stopCasting);