Type Alias: VideoConfig
type VideoConfig = object;
Defined in: types/VideoConfig.ts:3
Properties
externalSubtitles?
optional externalSubtitles: ExternalSubtitle[];
Defined in: types/VideoConfig.ts:40
The external subtitles to be used.
Note
on iOS, only WebVTT (.vtt) subtitles are supported (for HLS streams and MP4 files).
Note
on iOS, label
can be overridden by player and there is no way to get around it.
Example
externalSubtitles: [
{
uri: 'https://example.com/subtitles_en.vtt',
label: 'English',
type: 'vtt',
language: 'en'
},
{
uri: 'https://example.com/subtitles_es.vtt',
label: 'Español',
type: 'vtt',
language: 'es'
}
]
headers?
optional headers: Record<string, string>;
Defined in: types/VideoConfig.ts:17
The headers to be sent with the request.
uri
uri: VideoSource;
Defined in: types/VideoConfig.ts:13
The uri of the video.
Example
uri: 'https://example.com/video.mp4'
// or
uri: require('./assets/video.mp4')
We are TheWidlarzGroupPremium support →