Interface VendorCast

Common API for all cast integrations.

interface VendorCast {
    casting: boolean;
    state: CastState;
    addEventListener<TType>(type, listener): void;
    removeEventListener<TType>(type, listener): void;
    start(): void;
    stop(): void;
}

Hierarchy (view full)

Properties

casting: boolean

Whether the player is casting.

state: CastState

The state of the casting process.

Methods

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

    Returns void

    Remarks


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

  • Stop the active casting session.

    Returns void

Generated using TypeDoc