elk-zone / elk

A nimble Mastodon web client
https://elk.zone
MIT License
5.35k stars 555 forks source link

Click on video in the feed doesn't turn playback and sound #1337

Open Alex0007 opened 1 year ago

Alex0007 commented 1 year ago

When i see video in feed – it is playing without a sound

When i click on the video in feed – i expect it to start playing with sound (maybe from the beginning?)

Instead: video playback just stops, sound still not turned on, even after additional click

https://user-images.githubusercontent.com/1143226/213603624-5cf96e15-c01e-45ee-904a-9e31ffc50244.mov

stackblitz[bot] commented 1 year ago

Solve in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

ZMYaro commented 1 year ago

In your recording, you can see from the icon on the video player controls that the video is muted. That was done because some browsers do not allow videos to autoplay unless they are muted (#623).

What do folks think of making it so if you set your preferences to disable autoplay, it no longer mutes videos?

Alex0007 commented 1 year ago

In your recording, you can see from the icon on the video player controls that the video is muted. That was done because some browsers do not allow videos to autoplay unless they are muted (#623).

What do folks think of making it so if you set your preferences to disable autoplay, it no longer mutes videos?

I think all browsers allow to unmute video after interaction with <video> element (after click)