|
|
@ -79,7 +79,7 @@ |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
CastPlayer.prototype.setCastControlsVisible = function (visible) { |
|
|
|
CastPlayer.prototype.setCastControlsVisible = function (visible) { |
|
|
|
$("#flashPlayer").toggle(!visible); |
|
|
|
$("#player").toggle(!visible); |
|
|
|
$("#castPlayer").toggle(visible); |
|
|
|
$("#castPlayer").toggle(visible); |
|
|
|
$("#castOff").toggle(visible); |
|
|
|
$("#castOff").toggle(visible); |
|
|
|
$("#castOn").toggle(!visible); |
|
|
|
$("#castOn").toggle(!visible); |
|
|
@ -90,7 +90,6 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
CastPlayer.prototype.launchCastApp = function () { |
|
|
|
CastPlayer.prototype.launchCastApp = function () { |
|
|
|
this.log("launching app..."); |
|
|
|
this.log("launching app..."); |
|
|
|
$("#player").hide(); |
|
|
|
|
|
|
|
chrome.cast.requestSession(this.onRequestSessionSuccess.bind(this), this.onLaunchError.bind(this)); |
|
|
|
chrome.cast.requestSession(this.onRequestSessionSuccess.bind(this), this.onLaunchError.bind(this)); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -98,7 +97,6 @@ |
|
|
|
* Stops the running receiver application associated with the session. |
|
|
|
* Stops the running receiver application associated with the session. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
CastPlayer.prototype.stopCastApp = function () { |
|
|
|
CastPlayer.prototype.stopCastApp = function () { |
|
|
|
$("#player").show(); |
|
|
|
|
|
|
|
this.castSession.stop(this.onStopAppSuccess.bind(this, 'Session stopped'), |
|
|
|
this.castSession.stop(this.onStopAppSuccess.bind(this, 'Session stopped'), |
|
|
|
this.onError.bind(this)); |
|
|
|
this.onError.bind(this)); |
|
|
|
}; |
|
|
|
}; |
|
|
|