I’m using react-player component for this. I have file 1 where I’m storing some data as an array, including a local video. File 2 takes the array and maps each item to a React component called ProjectDetail. Finally, this is file 3 which contains ProjectDetail. It takes the array item as props. videoUrl is passed to the ReactPlayer component. title,
Tag: react-player
Adding subtitles in React Player?
i am trying to add subtitles in React Player component , Here is the code for react player component i cant understand what i am doing wrong as they are not appearing on the video. kindly help Answer Create a State for an array For your subtitles yout captions_arr should have objects like this Extract the part which you need