I have integrated React-player https://www.npmjs.com/package/react-player and want to track the video. I have configured it as
<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'**
]
}
}}
/>
It's working perfect for subtitles but not for chapters