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
Don't remember the specifics but I think it's probably doing a slightly better job of removing things than you think but also probably not as good of a job as it should.
As for why removeTrack_ takes either an HTMLTrackElement or {track: track} is because {track: track} is sort of our emulated HTMLTrackElement until we get a real emulated HTMLTrackElement.
removeTrack_(rtrack)
can oddly get called with either anHTMLTrackElement
or a{track: track}
—neither of which will be removed fromhttps://github.com/videojs/video.js/blob/master/src/js/tracks/text-track-list.js#L91, but instead it looks like its going to remove the last track in the loop?
Html5 tech will eventually fire a
removeTrack_(e.track)
. Which looks like it will remove the last track found in the previous loop.https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L754
https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L275
https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L772
https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L279
https://github.com/videojs/video.js/blob/master/src/js/tech/html5.js#L70
The text was updated successfully, but these errors were encountered: