Interface GlobalChromecast

The global Chromecast API.

interface GlobalChromecast {
    endSession(): void;
    initialize(configuration?): PromiseLike<void>;
    startSession(): PromiseLike<void>;
}

Methods

  • Stop the active casting session.

    Returns void

  • Initialize the Chromecast framework.

    Parameters

    Returns PromiseLike<void>

    Remarks


    - If this method is not called, then the first created THEOplayer instance will automatically initialize the Chromecast framework.

  • Start a casting session without a source.

    Returns PromiseLike<void>

    Remarks


    - The Chromecast framework must be initialized before starting a session.