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 keySystems option changing when reusing MediaKeySystemAccess #1616

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

Conversation

peaBerberian
Copy link
Collaborator

I noticed yet another bug while continuing to add DRM integration tests thanks to #1478.

If the keySystems loadVideo option was subtly modified between loadVideo calls, yet if we reused the same cached MediaKeySystemAccess we risked to rely on the old keySystems option, not on the new one.

It seems this bug was always there, so it shouldn't have impacted much applications (we would have heard of it)? But it seems relatively important to me.

I saw that issue in my integration tests while playing with the serverCertificate option. Changing it without changing the key system between loadVideo calls weirdly resulted in the first serverCertificate being used instead.

I noticed yet another bug while continuing to add DRM integration tests
thanks to #1478.

If the `keySystems` `loadVideo` option was subtly modified between
loadVideo calls, yet if we reused the same cached `MediaKeySystemAccess`
we risked to rely on the old `keySystems` option, not on the new one.

It seems this bug was always there, so it shouldn't impact much
applications? But it seems relatively important to me.
@peaBerberian peaBerberian added bug This is an RxPlayer issue (unexpected result when comparing to the API) DRM Relative to DRM (EncryptedMediaExtensions) Priority: 0 (Very high) This issue or PR has a very high priority. Efforts should be concentrated on it first. labels Dec 27, 2024
@peaBerberian peaBerberian added this to the 4.3.0 milestone Dec 27, 2024
@peaBerberian peaBerberian changed the title Fix keySystems option changing with reuse MediaKeySystemAccess Fix keySystems option changing when reusing MediaKeySystemAccess Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is an RxPlayer issue (unexpected result when comparing to the API) DRM Relative to DRM (EncryptedMediaExtensions) Priority: 0 (Very high) This issue or PR has a very high priority. Efforts should be concentrated on it first.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant