wetfish / sync

Synchronize audio and video between friends! Supports HTML5 video, YouTube, and Vimeo
27 stars 8 forks source link

Autoplay on firefox, otherwise display a play button #28

Closed itsrachelfish closed 4 years ago

itsrachelfish commented 5 years ago

Firefox allows videos to be autoplayed with audio. When a user connects to sync with Firefox, the video should automatically start playing unmuted.

Chromium based browsers like Chrome, Opera, and Safari require user interaction before a video can be played with audio. If the user connects to sync with any browser that isn't Firefox, a big play button should be displayed that the user has to click before starting the video.

By forcing the user to click a play button first, we'd be able to always start the stream with audio enabled, instead of starting the video without audio and requiring the user to unmute.

Meleeman01 commented 5 years ago

so i'm thinking we'll check for firefox or chrome clientside, if firefox, autoplay, unmute. else display a play button, and play/unmute the video on click.