I have a full-width video that auto-plays at the heading of a Hype web page. It looks great when the browser can play auto-play videos, but when viewing it on an iPad, it just displays as a play button. I set the element ID of the video to ‘video1’ and have it so, on-scene-load, the following JS runs:
In place of the video, I took some screenshots from the video and made it into a slideshow. Now my problem is that the slideshow plays on any device, including on a desktop computer… A less-than-ideal fix is to add the slideshow behind the video, so if the video can be played, it covers the slideshow, but if it can’t be played, the slideshow will show, but the problem with that is that the video is 9.8MB and already takes up a lot of bandwidth, and to have 7-8 pictures constantly moving while the video is looping slows it down even more. Is there some way of only showing the slideshow if “video1” cannot be played?
Android Chrome also doesn't support autoplay. Do I have to create a separate function, or can I include another line within the same Hype JS function like this: