Controllers - Chromecast Controller

The Chromecast controller can be requested from the global theoplayer variable using the controller property using the chromeCastController name.

This variable supports the following methods:

Method Description
sendMessage(message, value) Sends the given message to the Chromecast receiver.
start() Triggers the start of a Chromecast session.
stop() Triggers the end of a Chromecast session.

This object supports the following properties:

Property Description
casting Returns true if the player is casting to Chromecast.