-
I've never worked with JS code before, so perhaps I haven't set things up right. I downloaded video-js-8.5.2.zip, extracted it locally, Everything works fine. But after merely reloading the page, Tried it several times in both browsers - always the same. I'm helping a friend set up a website I found persistTextTrackSettings in the javascript, Have I missed something in the setup? My understanding of the guide is that I hope it won't be any more complicated than that ... :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The example pulls the scripts from zencdn: In video.js at line 19095: Now that I've read further into https://videojs.com/guides/setup/, I looked at the setup page yesterday, but was thrown off by all the |
Beta Was this translation helpful? Give feedback.
-
It works! This is my actual index.html: <head>
<title>Video.js | HTML5 Video Player</title>
<link href="./video-js.css" rel="stylesheet">
<script src="./video.debug.js"></script>
</head>
<body>
<video id="example_video_1" class="video-js" playsinline controls preload="none"
width="1280" height="528" data-setup='{"persistTextTrackSettings": true}'>
<source src="./oceans.mp4" type="video/mp4">
<track kind="subtitles" src="./captions.vtt" srclang="en" label="English" default>
</video>
</body> Conclusion:
I lost many hours trying to figure it out ... But thanks anyway. Video.js is pretty neat. :) |
Beta Was this translation helpful? Give feedback.
It works!
This is my actual index.html:
Conclusion:
I'm surprised that:
persistTextTrackSettings
is not on by default;