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: mediaCapabilitiesProber check generateRequest like the RxPlayer DRM selection algorithm #1575

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

Florent-Bouisset
Copy link
Collaborator

No description provided.

@Florent-Bouisset Florent-Bouisset force-pushed the fix/mediacapabilities-prober-check-generate-request branch from f27adba to 0ec65b6 Compare October 14, 2024 15:09
const mediaKeys = await keySystemAccess.createMediaKeys();
const session = mediaKeys.createSession();
const initData = generatePlayReadyInitData(DUMMY_PLAY_READY_HEADER);
await session.generateRequest("cenc", initData);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we close the session? Is is supposed to be GCed because the MediaKeys is not refered to anymore?

Maybe a call to close would be safer no?

@peaBerberian peaBerberian added this to the 4.2.0 milestone Oct 14, 2024
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