I'm working on a landing page and need to make a element autoplay sound-on when the video is scrolled into view.
Browsers are pretty strict towards this (and understandably so, given it can ruin UX). Some workarounds that I came across are:
- Including video controls;
- Checking for user interaction (click, keypress etc.);
- Checking whether the user has been redirected from another page of the same domain.
The first is not an option, for visual considerations. The other two apparently work in Chrome/Firefox, but not on Safari, which blocks the video.
Is there any way to autoplay a video with sound in Safari?