X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   HTML5 Video Autoplay (https://forum.x-cart.com/showthread.php?t=73588)

bob@n-flatables 02-16-2016 12:27 PM

HTML5 Video Autoplay
 
Is there a way to get HTML5 videos to autoplay?

Using the standard HTML <video> tag doesn't seem to work. The video won't play unless controls are used.

I am using X-Cat 5.2.13 Business.

EDIT: I wasn't clear. The same code was working in 5.2.6 but now doesn't in Chrome and Safari in 5.2.13. Autoplay is set to on per HTML5 standards.

cflsystems 02-16-2016 02:59 PM

Re: HTML5 Video Autoplay
 
You need to add

autoplay="autoplay"

to the tag. And keep in mind mobile users most likely will still have to click on play

bob@n-flatables 02-17-2016 06:51 AM

Re: HTML5 Video Autoplay
 
Yes, I have autoplay set to on, exactly how you said.

It was working in 5.2.6 but we upgraded to 5.2.13 and now it doesn't play. Same code. It works in FireFox.

totaltec 02-18-2016 05:51 AM

Re: HTML5 Video Autoplay
 
It is going to require investigating the actual page in order to find out. I doubt there will be a standard reason why, it is likely something conflicting on the page, malformed html, javascript error, something along those lines.


All times are GMT -8. The time now is 11:45 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.