Skip to content
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

player.removeRemoteTextTrack(track) Failing #2046

Closed
EZWrighter opened this issue Apr 16, 2015 · 3 comments
Closed

player.removeRemoteTextTrack(track) Failing #2046

EZWrighter opened this issue Apr 16, 2015 · 3 comments
Assignees
Milestone

Comments

@EZWrighter
Copy link

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

@EZWrighter
Copy link
Author

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.

@gkatsev
Copy link
Member

gkatsev commented Nov 17, 2015

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().

@gkatsev
Copy link
Member

gkatsev commented Apr 19, 2016

Fixed by #3253

@gkatsev gkatsev closed this as completed Apr 19, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants