I'm making this website with video effects (like this) instead of images. I've added code like this:
<video muted autoplay playsinline src="path_to_video.mp4"></video>
However, iOS doesn't support the autoplay property, which makes the video stuck on its first frame. I want to display a alternative image instead of the video on iPhones and browsers that don't support autoplay.
Is there a way to do this? (with JavaScript of possible)