I receive my subtitles dynamically from the remote API but I can't get them to show in my react-player
<ReactPlayer
width="100%"
height="100%"
url={src}
controls={true}
config={{
file: {
tracks: [
{
kind: 'subtitles',
src: 'https://s3.eu-central-1.amazonaws.com/'path'/subtitles-test.vtt',
srcLang: 'en',
default: true,
label: 'eng',
},
],
},
}}
/>
I also tried adding crossOrigin: 'true'
to the attributes
property but that makes me unable to play the video (it just gets stuck at 00:00)
Adding subtitles locally works just fine