Can anyone help with code to enable product page videos (media files) to autoplay on mobile? I’ve tried a few solutions but none working for mobile. Reformation theme. Thank you!
You’d have to go into the theme’s coding and find the coding for the video and then set “autoplay: true,” … however, there’s a reason it’s not enabled by default for mobile; mostly loading speeds and then data constraints. You really shouldn’t be having videos autoplay on mobile, so I wouldn’t recommend making this change. Also, some mobile browsers will override the autoplay feature, preventing it from working anyways.
You need to enable this in the code. But please be aware that this will cause some issues in mobile devices + the code needs to be modified to ONLY play the video if it’s in the viewport.