Unmute click-to-play self hosted videos#16179
Merged
Merged
Conversation
This is so that any click to play videos are unmuted by default. Otherwise, videos where autoplay is enabled are muted by default.
…l attempt to autoplay
|
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
|
Seen on PROD (merged by @abeddow91 9 minutes and 56 seconds ago) Please check your changes! |
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
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.
What does this change?
SelfHostedVideo now initialises isMuted based on whether the video will attempt to autoplay, rather than always defaulting to true.
When the videos is resumed / unpaused, it will retain its previous mute state.
The initial mute state is derived from
Why?
Previously, all self-hosted videos started muted regardless of whether they autoplayed or required user interaction to begin. This was correct for autoplay videos (browsers block autoplay with audio), but not for click-to-play videos.
A user clicking play on a Default-style article video has made a deliberate choice to watch it. Forcing them to then also click unmute creates an unnecessary step. Starting unmuted removes that friction and better matches the expected behaviour of a user-initiated media player.
Screenshots
Before
Screen.Recording.2026-06-17.at.08.40.47.mov
After
Screen.Recording.2026-06-17.at.08.47.00.mov