React Native THEOplayer SDK
    Preparing search index...

    Interface Chromecast

    The Chromecast API.

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

    Whether the player is connected with a chromecast device.

    state: CastState

    The state of the casting process.

    • Leave the active casting session.

      Returns void


      - 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


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