Vorlent / cozycast

movie night over the internet
Other
5 stars 3 forks source link

Fix autoplay #50

Closed Vorlent closed 4 years ago

Vorlent commented 4 years ago

On newer versions firefox has disabled autoplaying video. This caused me a lot of pain because other people with the same browser can't use cozycast at all. The reason is that upgrading from older versions keeps the autoplay setting on enabled but newer versions of firefox set it to disabled by default.

Vorlent commented 4 years ago

If you want to avoid having your audible playback blocked, you should only play media inside a click or keyboard event handler, or on mobile in a touchend event. Another strategy to consider for video is to autoplay muted, and present an “unmute” button to your users. Note that muted autoplay is also currently allowed by default in all major browsers which block autoplay media.

Vorlent commented 4 years ago

I have added a "Play button" and a loading screen. This has been solved.