Skip to content

feat: MUX - Set asset upload as protected by default when Signed URLs are enabled [INTEG-3288]#10236

Merged
Harika Kondur (harikakondur) merged 4 commits intocontentful:masterfrom
R-Delfino95:fix/default-signed-playback
Dec 10, 2025
Merged

feat: MUX - Set asset upload as protected by default when Signed URLs are enabled [INTEG-3288]#10236
Harika Kondur (harikakondur) merged 4 commits intocontentful:masterfrom
R-Delfino95:fix/default-signed-playback

Conversation

@R-Delfino95
Copy link
Copy Markdown
Contributor

Purpose

Previously, when Signed URLs were enabled in the plugin configuration, assets were uploaded as protected (signed in Mux).
However, the upload modal always defaulted to Public, ignoring that configuration.

This PR ensures that the modal now defaults to Protected (Signed) when the Signed URLs option is enabled in the plugin configuration.
Additionally, it fixes a race condition where playback signed URLs were not always retrieved properly — causing the player to fail and videos to not load.
Lastly, the mux-player-react package was updated to the latest version to ensure compatibility with modern browsers (e.g., Chrome now supports native HLS playback).

Approach

  • Updated the modal logic to respect the Signed URLs configuration and set Protected as the default upload option when applicable.
  • Fixed a race condition during signed playback retrieval to ensure consistent playback behavior.
  • Updated mux-player-react to the latest stable version to avoid playback issues with browsers supporting native HLS.

Testing steps

  1. Enable Signed URLs in the plugin configuration.
  2. Create a new entry using the plugin and upload a video.
    • In Privacy Settings, the default option should be Protected.
  3. Disable Signed URLs in the plugin configuration.
  4. Create another entry and upload a video.
    • In Privacy Settings, the default option should now be Public.
  5. With a Protected video, refresh the page or open the entry again.
    • The video should play correctly without errors.

Breaking Changes

None.
This change only affects new asset uploads and signed playback retrieval. Existing assets and configurations remain unaffected.

Deployment

No additional deployment steps required.
All changes are frontend-only; backend functions remain intact.

@R-Delfino95 Renzo Delfino (R-Delfino95) requested a review from a team as a code owner November 7, 2025 16:22
@R-Delfino95 Renzo Delfino (R-Delfino95) changed the title Mux: Set asset upload as protected by default when Signed URLs are enabled Mux: Set asset upload as protected by default when Signed URLs are enabled [] Nov 7, 2025
…bled in the plugin configuration.

Fixed race condition to properly get the signed playback.
Updated mux-player-react to latest.
@harikakondur Harika Kondur (harikakondur) changed the title Mux: Set asset upload as protected by default when Signed URLs are enabled [] feat: MUX - Set asset upload as protected by default when Signed URLs are enabled [INTEG-3288] Dec 10, 2025
@harikakondur Harika Kondur (harikakondur) merged commit fd04d9b into contentful:master Dec 10, 2025
12 checks passed
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.

4 participants