Need help getting Youtube video to autoplay on mobile. | XM Community
Question

Need help getting Youtube video to autoplay on mobile.

  • 7 September 2021
  • 1 reply
  • 236 views

Userlevel 6
Badge +5

The video is autoplaying on my computer but when I test the survey on mobile it does not autoplay. Here is the current iframe HTML

Any help would be greatly appreciated


1 reply

Userlevel 5
Badge +7

Hey uhrxx005, bad news on this. I plugged your iFrame into a survey and tested the link. Autoplay was broken on mobile for me too. What is interesting though: the mobile preview autoplayed just fine. This made me question what was different on mobile vs the mobile preview in the desktop app. Here's the answer from a Stack Overflow article on the subject (top answer).
TL:DR
Autoplay on mobile is intentionally disabled on all mobile devices, both Android and iOS to save users data.

So not your iframe code that's broken but an intentional block from the mobile OS' manufacturers.

Leave a Reply