|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions Make video to automatic play |
Make video to automatic play |
Place at video full entry
Code <script type="text/javascript"> window.onload = function() { $('div.vep-video-block').html(vicode);} </script> Find code at full entry Code <div class="vep-video-block"> $EOBJECT$ <a href="javascript:void(0)" onclick="player.showVideo()" class="vep-playvideo"> <img src="$SCREEN_URL$" alt="" width="480" /> <span class="vep-playbutton"></span> <?if($DURATION$)?><span class="vep-length">$DURATION$</span><?endif?> </a> <div id="videocontent" class="vep-videocontent" style="display:none;"></div> </div> and replace with code Code <div class="vep-video-block"> $EOBJECT$ </div> |
Datecity, or just simulate a click on page load, although that could be a bit of an issue: https://developers.google.com/web....changes
where does this variable come from? hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau sometimes i lurk here |
Datecity, she can try using that code, but next time, please don't post solutions here if you don't know how they work! they might work for you but not work for others, so you should always keep that in mind
hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau sometimes i lurk here |
It worked thanks! and how to remove suggested video?
Code <iframe width="640" height="360" src="https://www.youtube.com/embed/0sDg2h3M1RE?rel=0" frameborder="0"></iframe> The real=0 will work if has a direct access to the video link but in video module can not direct access youtube video link so how can i remove. |
Harina, it will not work because youtube has deprecated that parameter. It's no longer possible to achieve this. https://developers.google.com/youtube....23_2018
hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau sometimes i lurk here |
| |||
| |||