Closed ghost closed 3 years ago
Could you show an accurate example of how to add 'textTracks' tag inside JavaScript code? I can't find a way to properly add the subtitle within these lines:
sources: [{ src: 'sample.mp4', type: 'video/mp4' }], poster: 'poster.jpg' }, textTracks where? and how?
Here's a more complete example: https://github.com/videojs/videojs.com/blob/main/src/components/HomeComponents/AdvancedExample/playlist.js
You can see a usage of text tracks in the elephants dream video.
Could you show an accurate example of how to add 'textTracks' tag inside JavaScript code? I can't find a way to properly add the subtitle within these lines:
sources: [{ src: 'sample.mp4', type: 'video/mp4' }], poster: 'poster.jpg' }, textTracks where? and how?