Skip to content

Fix: autoplay videos don't always respect mute setting - #2525

Open
feather2222 wants to merge 1 commit into
Dimillian:mainfrom
feather2222:fix/autoplay-video-mute
Open

feather2222 wants to merge 1 commit into
Dimillian:mainfrom
feather2222:fix/autoplay-video-mute

Conversation

@feather2222

Copy link
Copy Markdown

Fixes #2492

preparePlayer started playback via player.play() before isMuted was applied in onAppear, leaving a race where audio could be heard even with "mute videos" enabled.

This PR applies isMuted on the player inside preparePlayer, before any playback begins.

Set isMuted on the player before playback starts in preparePlayer,
instead of applying it after play() in onAppear. This removes the
race where audio could briefly be heard when 'mute videos' is enabled.

Fixes Dimillian#2492
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.

Bug: autoplay videos dont always respect mute on autoplay

1 participant