Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add DRM support mux app #10376

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

Draft
ignasio-mux wants to merge 4 commits into contentful:master
base: master
Choose a base branch
Loading
from ignasio-mux:feat/drm_support

Conversation

@ignasio-mux
Copy link

@ignasio-mux ignasio-mux commented Dec 29, 2025
edited
Loading

Added support to upload assets using DRM playback policy. It includes updates to the configuration UI, asset editing workflow, token generation logic, and player code generation.

Disclaimer:
This PR is blocked until we decide what to do with the DRM preview in contentful, and closes #185.

The app configuration screen now includes a new "Advanced: DRM" section. Users can enable or disable DRM support and provide a DRM Configuration ID, which is stored alongside other installation parameters.
image

The asset configuration modal has been updated to include a "DRM Protected" option in the playback policy selector. This option becomes available only when DRM is enabled and a DRM Configuration ID is present; otherwise, it appears disabled with contextual help text. DRM is never selected by default, even when enabled, to avoid accidental use of a paid feature.
image
(In the example, the user did not set a DRM Configuration ID)

In the main app view, the app now detects when an asset uses a DRM playback policy. When this occurs, it requests DRM license tokens through a new App Action (getDRMLicenseTokens). The action generates all required tokens (license, playback, thumbnail, and storyboard) and these are passed to the MuxPlayer component through the tokens property. A new lock indicator shows when an asset is DRM-protected. Since assets may include multiple playback IDs, additional logic has been added for prioritizing which ID is displayed and which one is used during playback: the UI prioritizes Public → Signed → DRM, while playback always respects the selected policy.

When the DRM Configuration ID set by the user is not valid, the following message is shown in the UI when trying to activate the DRM protected playback in an asset (the text comes from the response from the API):
image

When viewing DRM assets inside Contentful, a warning message explains that DRM cannot be rendered in the preview.
image

Finally, the generated player code now includes DRM tokens and assigns them to the player.tokens property so that the resulting snippet can be used directly in production without additional setup.

@ignasio-mux ignasio-mux changed the title (削除) drm support (削除ここまで) (追記) drm support mux app (追記ここまで) Dec 29, 2025
Copy link

wiz-inc-38d59fb8d7 bot commented Dec 29, 2025
edited
Loading

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities -
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings 1 Medium
Software Supply Chain Finding Software Supply Chain Findings -
Total 1 Medium

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

@ignasio-mux ignasio-mux changed the title (削除) drm support mux app (削除ここまで) (追記) feat: add DRM support mux app (追記ここまで) Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /