THEOplayer Web SDK
    Preparing search index...

    Interface Cast

    The cast API.

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

    Hierarchy (View Summary)

    Index

    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