react-native-theoplayer
Version:
A THEOplayer video component for react-native.
53 lines (46 loc) • 931 B
text/typescript
/**
* The Chromecast API.
*
* @category Casting
* @public
*/
import type { CastState } from './CastState';
/**
* The Chromecast API.
*
* @category Casting
* @public
*/
export interface Chromecast {
/**
* Whether the player is connected with a chromecast device.
*/
readonly casting: boolean;
/**
* The state of the casting process.
*/
readonly state: CastState;
/**
* Start a casting session with the player's source.
*
* @remarks
* <br/> - A native browser pop-up will prompt to choose a chromecast device.
*/
start(): void;
/**
* Stop the active casting session.
*/
stop(): void;
/**
* Join an active casting session.
*/
join(): void;
/**
* Leave the active casting session.
*
* @remarks
* <br/> - Does not stop the session when other devices are connected.
* <br/> - Use {@link stop} to fully stop the session.
*/
leave(): void;
}