-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Filter metadata textracks in player APIs for src mode #2519
Conversation
@joeyparrish can you review it? |
lib/player.js
Outdated
@@ -2856,7 +2856,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget { | |||
return tracks; | |||
} else if (this.video_ && this.video_.src && this.video_.textTracks) { | |||
const textTracks = Array.from(this.video_.textTracks) | |||
.filter((t) => t.mode != 'disabled'); | |||
.filter((t) => t.mode != 'disabled' && t.kind != 'metadata'); |
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.
I'm reverting the change to filter on mode != 'disabled'
, so this will have to be updated soon. Sorry for the inconvenience, and thanks for the bug reports!
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.
I've just merged the change I mentioned. Please rebase at your earliest convenience. The rest of the change looks good. Thanks!
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.
I have done rebase. Thank you.
All tests passed! |
Backported to v2.5.x Resolves #2518 Change-Id: I5f534829a3d56e8067120dfb1750f1d04f27c4ab
Resolves #2518