<ReactPlayer
width={'100%'}
height={'auto'}
url={${videosCollection[selectedVideoId]?.url+videoResolution}.mp4}
controls
ref={playeref}
playing
config={{
file:{
tracks: [
{ kind: 'subtitles', src: '/subs/introduction.vtt', srcLang: 'en', default: true, label:'Locations'}
// The same code snipet is working for kind: 'subtitles'
]
}
}}
/>
<ReactPlayer
width={'100%'}
height={'auto'}
url={
${videosCollection[selectedVideoId]?.url+videoResolution}.mp4}controls
ref={playeref}
playing
config={{
file:{
tracks: [
{ kind: 'subtitles', src: '/subs/introduction.vtt', srcLang: 'en', default: true, label:'Locations'}
// The same code snipet is working for kind: 'subtitles'
]
}
}}
/>