The API for casting.

interface CastAPI {
    airplay?: Airplay;
    casting: boolean;
    chromecast?: Chromecast;
}

Properties

airplay?: Airplay

The Airplay API.

Remarks


- Only available when the feature or extension 'airplay' is enabled.

casting: boolean

Whether the player is connected with a casting device.

chromecast?: Chromecast

The Chromecast API.

Remarks


- Only available when the feature or extension 'chromecast' is enabled.