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

fix: Prevent license requests for unplayable variants #6204

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

avelad
Copy link
Member

@avelad avelad commented Jan 31, 2024

Fixes #3429

@avelad avelad added type: bug Something isn't working correctly priority: P2 Smaller impact or easy workaround labels Jan 31, 2024
@avelad avelad added this to the v5.0 milestone Jan 31, 2024
@avelad avelad merged commit cac1fd0 into shaka-project:main Jan 31, 2024
16 of 20 checks passed
this.onTracksChanged_();
}

const playableVariants = shaka.util.StreamUtils.getPlayableVariants(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This removes any variant that is not allowedByKeySystem. In some cases, this may prevent license requests for streams that are only unplayable because we haven't made a license request.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct, but at this point no variant allowedByKeySystem = false has yet been set, so it will never filter allowedByKeySystem

@avelad avelad deleted the prevent-license-requests branch February 1, 2024 07:11
avelad added a commit that referenced this pull request Feb 1, 2024
avelad added a commit that referenced this pull request Feb 1, 2024
theodab added a commit to theodab/shaka-player that referenced this pull request Feb 1, 2024
Vasanthavanan-Devarajan pushed a commit to Vasanthavanan-Devarajan/shaka-player that referenced this pull request Feb 20, 2024
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Mar 31, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Mar 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should 'Restrictions' in Config prevent license requests for restricted adaptation sets?
4 participants