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

add com.microsoft.playready.recommendation as a recognised key system #171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

benesva4
Copy link

I've added com.microsoft.playready.recommendation as a recognised key system. The keysystems behave almost identically. Function getSupportedKeySystem is then dependant on the name of the key system so there shouldn't be any changes needed there.

I wanted to add a test that would check that both of the key systems to go through defaultFairplayGetCertificate(), but there is no test that check getCeritificate for any key system.

Copy link
Member

@misteroneill misteroneill left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @benesva4 - one quick question!

@@ -348,6 +348,7 @@ const standardizeKeySystemOptions = (keySystem, keySystemOptions) => {
}

const isFairplay = isFairplayKeySystem(keySystem);
const isPlayready = keySystem === 'com.microsoft.playready' || keySystem === 'com.microsoft.playready.recommendation';
Copy link
Member

Choose a reason for hiding this comment

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

Should this include the recommendation.3000 variant as well?

Copy link
Author

Choose a reason for hiding this comment

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

Not in this state. It should be something like:

const isPlayready = [
    'com.microsoft.playready',
    'com.microsoft.playready.recommendation',
    'com.microsoft.playready.recommendation.3000'
    ].includes(keySystem)'

or a little bit less safe keySyste.startsWith('com.microsoft.playready') for .3000 to work. I wanted to add that up but I never got to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants