Skip to content

persistTextTrackSettings does not persist #8414

Closed Answered by j77h
j77h asked this question in Q&A
Discussion options

You must be logged in to vote

I'll try doing <video data-setup='{"persistTextTrackSettings": true, ... }'...> .

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'm surprised that:

  1. persistTextTrackSettings is not on by default;
  2. the guide…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by j77h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant