logo

THEOplayer > GlobalChromecast

GlobalChromecast interface

The global Chromecast API.

Signature:

export interface GlobalChromecast 

Methods

Method

Description

endSession​(): void

Stop the active casting session.

initialize​(configuration: ChromecastConfiguration): PromiseLike<void>

Initialize the Chromecast framework.

startSession​(): PromiseLike<void>

Start a casting session without a source.

Method Details

endSession

Stop the active casting session.

Signature:

endSession(): void;

initialize

Initialize the Chromecast framework.

Signature:

initialize(configuration?: ChromecastConfiguration): PromiseLike<void>;

Parameters

Parameter

Type

Description

configuration

ChromecastConfiguration

Describes Chromecast specific options.

Remarks


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

startSession

Start a casting session without a source.

Signature:

startSession(): PromiseLike<void>;

Remarks


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

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