Problem with AutoPlay jQuery code (for YouTube autoplay)
I saw in a previous discussion that you can have a youTube video autoplay if you set the autoplay=1 in the
$(document).ready(function()
{
$('.royalSlider').royalSlider('playVideo');
});
However, this doesn't appear to work. The video will play when you press the rsPlayButton - however, I really want to bypass this and actually have the video play as soon as the page finishes loading (I know its bad usability, however thats what the client wants!).
I might be putting the JQuery code in the wrong place too, currently I have it in my header.php file (it does get there according to my JavaScript debugger).
Any help would be appreciated. You can see my test page at http://massachusettswebdesigns.com/testing/
I am using RoyalSlider for Wordpress - I have the latest version available from ThemeForest.net
Ryan
Read more...
help.dimsemenov.com
No comments:
Post a Comment