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

Filter metadata textracks in player APIs for src mode #2519

Merged
merged 2 commits into from
Apr 24, 2020

Conversation

avelad
Copy link
Member

@avelad avelad commented Apr 22, 2020

Resolves #2518

@avelad
Copy link
Member Author

avelad commented Apr 22, 2020

@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');
Copy link
Member

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!

Copy link
Member

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!

Copy link
Member Author

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.

@shaka-bot
Copy link
Collaborator

All tests passed!

@joeyparrish joeyparrish merged commit f9f4841 into shaka-project:master Apr 24, 2020
joeyparrish pushed a commit that referenced this pull request May 1, 2020
Backported to v2.5.x

Resolves #2518

Change-Id: I5f534829a3d56e8067120dfb1750f1d04f27c4ab
@avelad avelad deleted the metadata-tracks-src branch March 16, 2022 15:59
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filter metadata textracks in player APIs for src mode
3 participants