• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » Make video to automatic play
Make video to automatic play
Harina
Posts: 58
Reputation: 0

Message # 1 | 7:44 PM
Hello, i want help and make a video auto play in a video module. The poster will first show and play button to play but i dont want this. I want video to start play automatic when user open the page. Thank you
Datecity
Posts: 40
Reputation: 0

Message # 2 | 6:52 PM
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>
bigblog
JOE-vascript
Posts: 1694
Reputation: 74

Message # 3 | 7:11 PM
Datecity, or just simulate a click on page load, although that could be a bit of an issue: https://developers.google.com/web....changes

Quote Datecity ()
vicode

where does this variable come from?

hey i'm joe and i do not work for the company anymore, sorry for the late replies
icon by ch-chau

I'm still here for some godforsaken reason
Datecity
Posts: 40
Reputation: 0

Message # 4 | 5:07 AM
bigblog,
Quote
where does this variable come from?
I also don know. I used it ounce and it worked. I copied from somewhere on internet. Generally i have no idea how it works wacko
bigblog
JOE-vascript
Posts: 1694
Reputation: 74

Message # 5 | 2:42 PM
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 smile
hey i'm joe and i do not work for the company anymore, sorry for the late replies
icon by ch-chau

I'm still here for some godforsaken reason
Harina
Posts: 58
Reputation: 0

Message # 6 | 5:35 PM
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.
bigblog
JOE-vascript
Posts: 1694
Reputation: 74

Message # 7 | 11:31 AM
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, sorry for the late replies
icon by ch-chau

I'm still here for some godforsaken reason
uCoz Community » For Webmasters » Custom Solutions » Make video to automatic play
  • Page 1 of 1
  • 1
Search: