slide-show icon indicating copy to clipboard operation
slide-show copied to clipboard

Videos only play when I interact with the slideshow

Open masilli opened this issue 4 years ago • 1 comments

Hi! This is really good, thanks for it... I can't get the videos to autoplay. It only plays when I interact with the buttons, otherwise it's paused in the first frame. Do you know a way to autoplay videos as the slideshow goes, without having to interact with it?

masilli avatar Oct 21 '21 10:10 masilli

If you're using Chrome (or another Chromium-based browsers), it's probably because it now blocks autoplay by default. I managed to solve that by setting the video element as "muted".

Source: https://developer.chrome.com/blog/autoplay/

My videos don't have sound so it's not an issue for me. If having the sound is needed, it's probably necessary to add a button somewhere to let the user activate the sound

mossroy avatar May 13 '22 16:05 mossroy