Paul's Programming Notes     Archive     Feed     Github

HTML5 - video playsinline

I added "autoplay muted" to my <video> tag to make a video autoplay in a carousel. It worked on desktop Chrome or Firefox, but didn't work on iOS Chrome or Safari.

I learned about the "playsinline" fix from here: https://webkit.org/blog/6784/new-video-policies-for-ios/

Adding "playsinline" to my video tag fixed it.