By default when you embed a youtube video on a web page using the YouTube embed code the user has to press the play button. For all situations where you want the video to autoplay you need to make two changes to the object embed code that you get from YouTube. Look for the location of your video in the object embed code, it should be like:

http://www.youtube.com/v/DMxNkrwajN8

Then append the following at the end:

&autoplay=1

So working with the above example the link to our video in our object embed code would become:

http://www.youtube.com/v/DMxNkrwajN8&autoplay=1

Easy peazy.

Share post on facebook

Comments

View Comments Add Your Own Comment


    Warning: call_user_func(custom_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home/alankay9/public_html/alanwho/wp-includes/comment-template.php on line 1335

    Warning: call_user_func(custom_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home/alankay9/public_html/alanwho/wp-includes/comment-template.php on line 1335

    Warning: call_user_func(custom_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home/alankay9/public_html/alanwho/wp-includes/comment-template.php on line 1335

    Warning: call_user_func(custom_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home/alankay9/public_html/alanwho/wp-includes/comment-template.php on line 1335

    Warning: call_user_func(custom_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home/alankay9/public_html/alanwho/wp-includes/comment-template.php on line 1335

    Warning: call_user_func(custom_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home/alankay9/public_html/alanwho/wp-includes/comment-template.php on line 1335

    Warning: call_user_func(custom_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home/alankay9/public_html/alanwho/wp-includes/comment-template.php on line 1335

    Warning: call_user_func(custom_comment) [function.call-user-func]: First argument is expected to be a valid callback in /home/alankay9/public_html/alanwho/wp-includes/comment-template.php on line 1335

Add Your Own Comment Fields marked * are required.

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS

blog comments powered by Disqus