playsinline not working for video on iOS?

I have a site that uses a video with the following code:

<video autoplay loop muted playsinline> <source src="/content/video.mp4" type="video/mp4"> </video> 

I need the video to autoplay on iOS. It autoplays just fine on Android and desktop, but not iOS. I'm not sure why. Everything I see online says that if you use the playsinline attribute, you should be good. But it's not working for me, and I know of no way to inspect the browser console in iOS.

5

1 Answer

You need to edit your Code like this:

<video autoplay loop muted playsinline src="/content/video.mp4" type="video/mp4"> </video> 

the "src-path" dont need a own tag, you should include it in the <video> tag

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like