This API call allows a developer to listen for cast events.
Endpoints
Method | Description |
---|---|
.stopCasting() | Immediately end the current Chromecast session if one exists |
.requestCast() | Used to cast and update currently playing cast media with a new playlist item(s) |
Events
Method | Description |
---|---|
.on('cast') | Triggered when a cast property changes |
.on('castIntercepted') | Fired when interceptCast is enabled, and a customer tries to cast content The event also indicates whether a cast session is currently active. |