-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No method to dynamically change <tracks> #2628
Comments
Anyone? @heff? |
The API for working with text tracks currently mimic the native text track APIs. var oldTracks = player.remoteTextTracks();
var i = oldTracks.length;
while (i--) {
player.removeRemoteTextTrack(oldTracks[i]);
}
myNewTracks.forEach(function(track) {
player.addRemoteTextTrack(track);
}); And yes, we really need to fix up and update our documentation relating to text tracks and how to use them. Anyway, hope the above helps for now! |
@hparra does my previous comment help? Sorry for the delayed responses. |
Thanks @gkatsev. Not sure yet, other fires... Were there (planned) changes in between 4.x and 5.x? |
There was a change between v4 and v5 around the main text track list object that videojs has but that shouldn't affect you. |
Yeah, I think there are problems with the chapters menu right now. I'll be investigating them this week. |
OK. FYI, this is with final version in 4.x series. Any clues for poking around welcomed. Was some listener supposed to remove them? |
Closed by 18cdf08 |
This is probably related to #2369.
I was looking for something similar to
player.src([{}])
but for tracks. I have browsed issues at https://github.com/videojs/video.js/milestones/Text%20Tracks and read https://github.com/videojs/video.js/blob/stable/docs/guides/tracks.md but I am still confused by how related TextTrack API is supposed to work. Any clarification and known pitfalls would help me to take a stab at this.I'm still on 4.x and would be implementing anything against that.
Related: Would a method to dynamically change all video child tags at once be useful? I could see why changing just the tracks mid-play would be a more difficult change.
The text was updated successfully, but these errors were encountered: