VideoConfig
The main configuration object for video sources. This type defines how videos are loaded and configured in React Native Video.Properties
The URI of the video. Can be a remote URL (string) or a local asset (number from
require()).Custom HTTP headers to send with the video request.
Player buffer configuration. See BufferConfig for details.
Custom metadata associated with the video for display in native players.
Array of external subtitle tracks to load with the video.
On iOS, only WebVTT (.vtt) subtitles are supported for HLS streams and MP4 files.
The
label property may be overridden by the iOS player.Determines if the native player should be initialized immediately when created.
true: Player initializes as soon as it’s createdfalse: Player must be initialized manually later
VideoSource
The video source can be either a string URL or a number fromrequire().
Examples
Remote video
Local video asset
Video with headers and DRM
Video with subtitles
SubtitleType
Supported subtitle format types:'vtt'- WebVTT format'srt'- SubRip format'ssa'- SubStation Alpha format'ass'- Advanced SubStation Alpha format'auto'- Auto-detect from file extension (not available when URI has no extension)