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

feat(Mcap): Add config for media capabilities cache #6615

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

CeilingFANC
Copy link
Contributor

Related to #6219

For drm contents with many variants, calling mediaCapabilities on all variants can take quiet some times. This PR is trying to provide a way to check availability of variants in a performance way, but with potential false positive. It tries to group/cache variants by some enum, contentType and keysystem, and share results to reduce call to calculating input for mediaCapabilities, building cachekey, and calling mediaCapabilities itself.

@CeilingFANC CeilingFANC changed the title Feat/ media capabilities cache feat: media capabilities cache May 15, 2024
@shaka-bot
Copy link
Collaborator

shaka-bot commented May 15, 2024

Incremental code coverage: 50.00%

@avelad avelad added type: enhancement New feature or request priority: P3 Useful but not urgent labels May 15, 2024
@avelad avelad added this to the v4.9 milestone May 15, 2024
@CeilingFANC CeilingFANC changed the title feat: media capabilities cache perf(DRM): media capabilities cache May 16, 2024
@avelad avelad changed the title perf(DRM): media capabilities cache feat(Mcap): Add config for media capabilities cache May 17, 2024
lib/util/stream_utils.js Outdated Show resolved Hide resolved
lib/util/stream_utils.js Outdated Show resolved Hide resolved
lib/util/stream_utils.js Outdated Show resolved Hide resolved
lib/util/stream_utils.js Outdated Show resolved Hide resolved
lib/util/stream_utils.js Outdated Show resolved Hide resolved
lib/util/stream_utils.js Outdated Show resolved Hide resolved
lib/util/stream_utils.js Outdated Show resolved Hide resolved
lib/util/stream_utils.js Outdated Show resolved Hide resolved
@avelad avelad modified the milestones: v4.9, v4.10 May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: P3 Useful but not urgent type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants