There is anyway to delay the auto start of a youtube video for example:" 20seconds, after page loads?"
Here is the example just with the auto start:
Thanks
There is anyway to delay the auto start of a youtube video for example:" 20seconds, after page loads?"
Here is the example just with the auto start:
Thanks
I use the following function
Using https://developers.google.com/youtube/iframe_api_reference this will add a 10 second delay before the video automatically starts:
The best way to do it is to use YouTube.API with Javascript functionality.
I hope this help
It is not perfect solution but it works,
note that I used data-src instead of 'src'
It will load iframe 20 seconds after page loads. see my fork: http://jsfiddle.net/WswGV/
The link to the IFrame YouTube API above is obsolete, I think, but here's one I found today:
https://developers.google.com/youtube/iframe_api_reference
Wish I'd read that a long time ago.
To excerpt from the example there, I would suggest that you detect the player being downloaded and ready, then set a timer for the desired number of seconds (20 in your case, I think), and then play the video.
---v