-
Notifications
You must be signed in to change notification settings - Fork 166
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
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ignasio-mux
ignasio-mux
changed the title
(削除) drm support (削除ここまで)
(追記) drm support mux app (追記ここまで)
Dec 29, 2025
Wiz Scan Summary
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.