logo

THEOplayer > VendorCast

VendorCast interface

Inherits from EventDispatcher<VendorCastEventMap> . See parent page for inherited properties and methods.

Common API for all cast integrations.

Signature:

export interface VendorCast extends EventDispatcher<VendorCastEventMap> 

Properties

Property

Type

Description

casting

boolean

Whether the player is casting.

state

CastState

The state of the casting process.

Methods

Method

Description

start​(): void

Start a casting session with the player's source.

stop​(): void

Stop the active casting session.

Property Details

casting

Whether the player is casting.

Signature:

casting: boolean;

state

The state of the casting process.

Signature:

state: CastState;

Method Details

start

Start a casting session with the player's source.

Signature:

start(): void;

Remarks


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

stop

Stop the active casting session.

Signature:

stop(): void;
github
Make sure to follow us on GitHub!
THEO-logo-white
twitter
facebook
linkedin
Copyright © 2022. All Rights Reserved.
Leuven
New York
Singapore
Barcelona