You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The buttons below the player trigger a removeRemoteTextTrack on the player for the current track and then dynamically add a new track. The new track gets added, but the old track still exists in the menu and within the player.
This test case is running the latest CDN 4.12 version of videojs.
Should be working according to comments here: #1700
The text was updated successfully, but these errors were encountered:
Another note on this. Personally, I would like player.src(sources) function to remove any captions that exist in the player. It would be great if I could pass the player a json object with sources and captions and just have it work :-)
If I am setting new sources in the player, I would think in most cases the old text tracks would become invalid.
Right now I just need something working so I can use videojs for playlists with captions and not have to dispose/reload on every switch.
Looks like the issue is that removeRemoteTextTrack isn't working correctly when called with the response from addRemoteTextTrack. It should be working fine if you get the track itself directly from the textTracks().
Attempting to remove a text track dynamically does not work in Firefox or Chrome.
reduced test case: http://partner.mediamobz.com/caption-test/
The buttons below the player trigger a removeRemoteTextTrack on the player for the current track and then dynamically add a new track. The new track gets added, but the old track still exists in the menu and within the player.
This test case is running the latest CDN 4.12 version of videojs.
Should be working according to comments here: #1700
The text was updated successfully, but these errors were encountered: