The cast API.

interface Cast {
    airplay?: AirPlay;
    casting: boolean;
    chromecast?: Chromecast;
    addEventListener<TType>(type: TType | readonly TType[], listener: EventListener<CastEventMap[TType]>): void;
    removeEventListener<TType>(type: TType | readonly TType[], listener: EventListener<CastEventMap[TType]>): void;
}

Hierarchy (view full)

Properties

airplay?: AirPlay

The Airplay integration API.


- Only available with the feature 'airplay'.

casting: boolean

Whether the player is connected with a casting device.

chromecast?: Chromecast

The Chromecast integration API.


- Only available with the feature 'chromecast'.

Methods