amazon-ivs-react-native-player
Version:
amazon-ivs-react-native-player
59 lines (56 loc) • 1.74 kB
Flow
/**
* Flowtype definitions for IVSPlayer
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.13.0
* @flow
*/
import * as React from 'react';
import type { ViewStyleProp } from 'react-native/Libraries/StyleSheet/StyleSheet';
import typeof { LogLevel } from './enums';
import type {
Quality,
PlayerData,
TextCue,
TextMetadataCue,
VideoData,
IVSPlayerRef,
ResizeMode,
} from './types';
declare type Props = {|
style?: ViewStyleProp,
paused?: boolean,
muted?: boolean,
loop?: boolean,
autoplay?: boolean,
streamUrl?: string,
resizeMode?: ResizeMode,
liveLowLatency?: boolean,
rebufferToLive?: boolean,
playbackRate?: number,
logLevel?: LogLevel,
progressInterval?: number,
volume?: number,
quality?: Quality | null,
autoMaxQuality?: Quality | null,
autoQualityMode?: boolean,
breakpoints?: number[],
maxBitrate?: number,
onSeek?: (position: number) => void,
onData?: (data: PlayerData) => void,
onVideoStatistics?: (data: VideoData) => void,
onPlayerStateChange?: (state: number) => void,
onDurationChange?: (duration: number | null) => void,
onQualityChange?: (quality: Quality | null) => void,
onPipChange?: (isActive: boolean) => void,
onRebuffering?: () => void,
onLoadStart?: () => void,
onLoad?: (duration: number | null) => void,
onLiveLatencyChange?: (liveLatency: number) => void,
onTextCue?: (textCue: TextCue) => void,
onTextMetadataCue?: (textMetadataCue: TextMetadataCue) => void,
onProgress?: (progress: number) => void,
onError?: (error: string) => void,
onTimePoint?: (position: number) => void,
|};
declare var IVSPlayerContainer: React.AbstractComponent<Props, IVSPlayerRef>;
declare export default typeof IVSPlayerContainer;