import * as React from 'react'; import { NativeMethods } from 'react-native'; import { Playback, AVPlaybackSource, AVPlaybackStatus, AVPlaybackStatusToSet, AVPlaybackNativeSource } from './AV'; import { ExponentVideoComponent, VideoFullscreenUpdateEvent, VideoNativeProps, VideoNaturalSize, VideoProps, VideoReadyForDisplayEvent, ResizeMode, VideoState } from './Video.types'; export { ExponentVideoComponent, VideoFullscreenUpdateEvent, VideoNativeProps, VideoNaturalSize, VideoProps, VideoReadyForDisplayEvent, ResizeMode, VideoState, AVPlaybackStatus, AVPlaybackStatusToSet, AVPlaybackNativeSource, }; export declare const FULLSCREEN_UPDATE_PLAYER_WILL_PRESENT = 0; export declare const FULLSCREEN_UPDATE_PLAYER_DID_PRESENT = 1; export declare const FULLSCREEN_UPDATE_PLAYER_WILL_DISMISS = 2; export declare const FULLSCREEN_UPDATE_PLAYER_DID_DISMISS = 3; export declare const IOS_FULLSCREEN_UPDATE_PLAYER_WILL_PRESENT = 0; export declare const IOS_FULLSCREEN_UPDATE_PLAYER_DID_PRESENT = 1; export declare const IOS_FULLSCREEN_UPDATE_PLAYER_WILL_DISMISS = 2; export declare const IOS_FULLSCREEN_UPDATE_PLAYER_DID_DISMISS = 3; export default class Video extends React.Component implements Playback { static RESIZE_MODE_CONTAIN: ResizeMode; static RESIZE_MODE_COVER: ResizeMode; static RESIZE_MODE_STRETCH: ResizeMode; static IOS_FULLSCREEN_UPDATE_PLAYER_WILL_PRESENT: number; static IOS_FULLSCREEN_UPDATE_PLAYER_DID_PRESENT: number; static IOS_FULLSCREEN_UPDATE_PLAYER_WILL_DISMISS: number; static IOS_FULLSCREEN_UPDATE_PLAYER_DID_DISMISS: number; static FULLSCREEN_UPDATE_PLAYER_WILL_PRESENT: number; static FULLSCREEN_UPDATE_PLAYER_DID_PRESENT: number; static FULLSCREEN_UPDATE_PLAYER_WILL_DISMISS: number; static FULLSCREEN_UPDATE_PLAYER_DID_DISMISS: number; _nativeRef: React.RefObject & NativeMethods>; _onPlaybackStatusUpdate: ((status: AVPlaybackStatus) => void) | null; constructor(props: VideoProps); setNativeProps(nativeProps: VideoNativeProps): void; _handleNewStatus: (status: AVPlaybackStatus) => void; _performOperationAndHandleStatusAsync: (operation: (tag: number) => Promise) => Promise; _setFullscreen: (value: boolean) => Promise; presentFullscreenPlayer: () => Promise; presentIOSFullscreenPlayer: () => Promise; presentFullscreenPlayerAsync: () => Promise; dismissFullscreenPlayer: () => Promise; dismissIOSFullscreenPlayer: () => void; getStatusAsync: () => Promise; loadAsync: (source: AVPlaybackSource, initialStatus?: AVPlaybackStatusToSet, downloadFirst?: boolean) => Promise; unloadAsync: () => Promise; setStatusAsync: (status: AVPlaybackStatusToSet) => Promise; replayAsync: (status?: AVPlaybackStatusToSet) => Promise; setOnPlaybackStatusUpdate(onPlaybackStatusUpdate: ((status: AVPlaybackStatus) => void) | null): void; playAsync: () => Promise; playFromPositionAsync: (positionMillis: number, tolerances?: { toleranceMillisBefore?: number; toleranceMillisAfter?: number; }) => Promise; pauseAsync: () => Promise; stopAsync: () => Promise; setPositionAsync: (positionMillis: number, tolerances?: { toleranceMillisBefore?: number; toleranceMillisAfter?: number; }) => Promise; setRateAsync: (rate: number, shouldCorrectPitch: boolean) => Promise; setVolumeAsync: (volume: number) => Promise; setIsMutedAsync: (isMuted: boolean) => Promise; setIsLoopingAsync: (isLooping: boolean) => Promise; setProgressUpdateIntervalAsync: (progressUpdateIntervalMillis: number) => Promise; _nativeOnPlaybackStatusUpdate: (event: { nativeEvent: AVPlaybackStatus; }) => void; _nativeOnLoadStart: () => void; _nativeOnLoad: (event: { nativeEvent: AVPlaybackStatus; }) => void; _nativeOnError: (event: { nativeEvent: { error: string; }; }) => void; _nativeOnReadyForDisplay: (event: { nativeEvent: VideoReadyForDisplayEvent; }) => void; _nativeOnFullscreenUpdate: (event: { nativeEvent: VideoFullscreenUpdateEvent; }) => void; _renderPoster: () => JSX.Element | null; render(): JSX.Element; }