UNPKG

react-native-video-basic-controls

Version:

Controls for the React Native <Video> component at react-native-video.

44 lines (43 loc) 1.39 kB
import React from 'react'; import { GestureResponderEvent, ViewStyle } from 'react-native'; import { PLAYER_STATES } from './constants/playerStates'; import { CustomIconStyle } from './Controls'; import { CustomSliderStyle } from './Slider'; export declare type Props = { children: React.ReactNode; containerStyle?: ViewStyle; duration: number; bufferValue: number; fadeOutDelay?: number; isLoading: boolean; mainColor?: string; bufferColor?: string; onFullScreen?: (event: GestureResponderEvent) => void; fullScreenIconP?: React.ReactNode; fullScreenIconL?: React.ReactNode; onPaused: (playerState: PLAYER_STATES) => void; onReplay?: () => void; onSeek: (value: number) => void; onSeeking?: (value: number) => void; onSkipFor?: () => void; onSkipBack?: () => void; playerState: PLAYER_STATES; progress: number; showOnStart?: boolean; sliderStyle?: CustomSliderStyle; iconStyle?: CustomIconStyle; toolbarStyle?: ViewStyle; VSliderOuterStyles?: ViewStyle; VSliderInnerStyles?: ViewStyle; showVolume?: boolean; showBrightness?: boolean; sliderScale?: number; sliderType?: 'Slider' | 'Swipe'; }; declare const MediaControls: { (props: Props): JSX.Element; Toolbar: ({ children }: { children: React.ReactNode; }) => JSX.Element; }; export default MediaControls;