react-native-theoplayer
Version:
A THEOplayer video component for react-native.
23 lines (15 loc) • 663 B
text/typescript
import type { CastState, ChromecastError } from 'react-native-theoplayer';
import type { CastEventType } from 'react-native-theoplayer';
export type NativeCastEvent = NativeChromecastChangeEvent | NativeAirplayStateChangeEvent | NativeChromecastErrorEvent;
export interface NativeChromecastChangeEvent {
readonly type: CastEventType.CHROMECAST_STATE_CHANGE;
readonly state: CastState;
}
export interface NativeAirplayStateChangeEvent {
readonly type: CastEventType.AIRPLAY_STATE_CHANGE;
readonly state: CastState;
}
export interface NativeChromecastErrorEvent {
readonly type: CastEventType.CHROMECAST_ERROR;
readonly error: ChromecastError;
}