mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* [react-native-video] replace 2 spaces indent by 4 spaces indent * [react-native-video] add missing props * [react-native-video] update version in header comments * [react-native-video] fix version in header comments * [react-native-video] add a few unique props in tests * [react-native-video] fix buffer option's name (bufferForPlaybackAfterRebufferMs)
22 lines
977 B
TypeScript
22 lines
977 B
TypeScript
import * as React from 'react';
|
|
import Video, { FilterType } from 'react-native-video';
|
|
|
|
<Video
|
|
source={{ uri: '//:example.com/test.mp4' }}
|
|
onProgress={data => console.log(data.currentTime, data.playableDuration, data.seekableDuration)}
|
|
onError={error => console.log(error.error[''], error.error.errorString)}
|
|
onLoad={data => {
|
|
console.log(data.canPlayFastForward, data.canPlayReverse, data.canPlaySlowForward, data.canPlaySlowReverse,
|
|
data.canStepBackward, data.canStepForward, data.currentTime, data.duration, data.naturalSize.height, data.naturalSize.width, data.naturalSize.orientation);
|
|
}}
|
|
onPlaybackRateChange={({playbackRate}) => console.log(playbackRate)}
|
|
posterResizeMode={"cover"}
|
|
onPictureInPictureStatusChanged={data => {
|
|
console.log(data.isActive);
|
|
}}
|
|
filterEnable={true}
|
|
filter={FilterType.MONO}
|
|
selectedAudioTrack={{ type: 'index', value: 6 }}
|
|
selectedVideoTrack={{ type: 'auto' }}
|
|
/>;
|