Home > Software engineering >  Why does my autoplay not consistently work on mobile devices?
Why does my autoplay not consistently work on mobile devices?

Time:02-08

I have a website with a video that is supposed to autoplay. Last week it was working on both the web browser and mobile devices, but now the video will not autoplay on my mobile device despite the code being the same, and I have to hit a play button for the video to start. The video still autoplays in the web browser. Does anyone know why this is? I have attached an image of my code below.

Code Image

CodePudding user response:

Try doing, using autoplay instead of autoPlay="autoplay"

According to developer.mozilla.org, the attribute is autoplay, not autoPlay

CodePudding user response:

If you are viewing it on Safari on IOS and the video does not have any sound it does not work. See the compatibility here.

  •  Tags:  
  • Related