Interface GlobalChromecast

The global Chromecast API.

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

Methods

  • Stop the active casting session.

    Returns void

  • Initialize the Chromecast framework.

    Parameters

    Returns PromiseLike<void>


    - 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>


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