A React Native video player with a few controls. This player uses react-native-video for the video playback.
npm install --save react-native-video-player
react-native link react-native-video
react-native link react-native-vector-icons
Prop | Description |
---|---|
video | The video source to pass to react-native-video. |
thumbnail | An Image source to use as thumbnail before the video gets loaded. |
videoWidth | Width of the video to calculate the player size. |
videoHeight | Height of the video to calculate the player size. |
duration | Duration can not always be figured out (e.g. when using hls), this can be used as fallback. |
autoplay | Start the video automatically. |
defaultMuted | Start the video muted, but allow toggling. |
muted | Start the video muted and hide the mute toggle button. |
controlsTimeout | Timeout when to hide the controls. |
loop | Loop the video after playback is done. |
- Make seek bar seekable.
- Make player customizable.
- Add volume control