Video.js With fmp4 CEA-608 Support
by Sahil Kashyap
HTML
<link rel="stylesheet" href="https://unpkg.com/video.js/dist/video-js.css">
<script src="https://unpkg.com/@videojs/http-streaming/dist/videojs-http-streaming.js"></script>
<script src="https://unpkg.com/video.js/dist/video.js"></script>
<!--
Uses the latest versions of video.js and videojs-http-streaming.
To use specific versions, please change the URLs to the form:
<link href="https://unpkg.com/[email protected]/dist/video-js.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/video.js"></script>
<script src="https://unpkg.com/@videojs/[email protected]/dist/videojs-http-streaming.js"></script>
-->
<video-js id="my_video_1" class="vjs-default-skin vjs-16-9" controls preload="auto" width="100%" height="350">
<source src="https://content.jwplatform.com/manifests/yp34SRmf.m3u8" type="application/x-mpegURL">
</video-js>
<script>
var player = videojs('my_video_1', {
html5: {
hls: {
overrideNative: true
}
}
});
</script>