-
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
fix: auto-removal remote text tracks being removed when not supposed to #4434
fix: auto-removal remote text tracks being removed when not supposed to #4434
Conversation
test/unit/tracks/text-tracks.test.js
Outdated
techOrder: ['html5'] | ||
}); | ||
|
||
console.log(player.isReady_, player.tech_.isReady_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter is complaining about this.
test/unit/tracks/text-tracks.test.js
Outdated
techOrder: ['html5'] | ||
}); | ||
|
||
console.log(player.isReady_, player.tech_.isReady_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter is complaining about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once we figure out why tests are failing on Travis.
Closing this PR for the moment so I can re-open it via upstream so tests will run against browserstack. |
New PR: #4450 |
Description
We added a feature so that remote text tracks can auto-removed when a source changes. However, in 6.x we changed the source behavior to be asynchronous meaning that some text tracks were accidentally being removed when they weren't supposed to be.
For example:
Now when the player loads, this captions track is actually missing because it was removed.
Specific Changes proposed
Instead of adding auto-removal tracks immediately to the list, wait until we've selected a source before adding them in.
This probably needs a test.
Fixes #4403 and #4315.