On my Prestashop I use YouTube videos in some product tabs. Here is an exemple :
<ul id="tabvideos" class="video_cols_6">
<li id="thumb_video_118" class="video_link">
<a id="video_link_1" class="videocenter" href="https://www.youtube-nocookie.com/embed/ehzbdk" title="Vidéo: e" data-video-id="zdsdsdsd" data-video-player="youtube" data-video-title=""><img class="img-responsive" src="https://i.ytimg.com/vi/TLHyVedfdsssdsdnOzs10/hqdefault.jpg" alt="e vidéo" title="e vidéo">
</a>
</li>
</ul>
We use a module and autoplay should be activated. It seems that a previous developer has been integrating some script somewhere to cancel this.
How to make all the YT videos on the website in autoplay?
2
Answers
Here are the two codes I found related to autoplay in different files. How to edit them to make it autoplay? Thanks.
product-video-1.4.js
tabcontent-1.7.tpl
First find the script that is cancelling the autoplay. It could be in ur theme files, custom modules or directly embedded in the Pretashop backend.
After finding the script look for a code that looks like this
Then replace it with this:
But if you are unable to find the script I think it is better to contact the previous developer.