interface Chromecast {
    casting: boolean;
    state: CastState;
    join(): void;
    leave(): void;
    start(): void;
    stop(): void;
}

Properties

Methods

Properties

casting: boolean

Whether the player is connected with a chromecast device.

state: CastState

The state of the casting process.

Methods

  • Leave the active casting session.

    Returns void

    Remarks


    - Does not stop the session when other devices are connected.
    - Use stop to fully stop the session.

  • Start a casting session with the player's source.

    Returns void

    Remarks


    - A native browser pop-up will prompt to choose a chromecast device.

Generated using TypeDoc