{"id":3155,"date":"2010-01-28T00:27:00","date_gmt":"2010-01-28T05:27:00","guid":{"rendered":"http:\/\/socialmedia123.com\/?p=101"},"modified":"2020-12-23T21:50:51","modified_gmt":"2020-12-23T21:50:51","slug":"youtube-embed-code-options-autoplay","status":"publish","type":"post","link":"https:\/\/misuniversity.com\/members\/youtube-embed-code-options-autoplay\/","title":{"rendered":"YouTube Embed Code Options \u2013 Autoplay On or Off"},"content":{"rendered":"<p>Here are some problems I face when embedding YouTube videos on my website. (Autoplaying YouTube videos.)<\/p>\n<p>First, the user has to click on the \u201cplay\u201d button for the video to play. People who are new to online video might not even know to how to do that.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" title=\"autoplay youtube\" src=\"http:\/\/brianwong.com\/blog\/wp-content\/uploads\/2008\/09\/play.png\" border=\"0\" alt=\"autoplay youtube\" hspace=\"4\" vspace=\"4\" width=\"379\" height=\"241\" \/><\/p>\n<p>Second, at the end of the video, the \u201crelated videos\u201d pop up taking your visitor to other sites. In other words, off your site!<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" title=\"Related-Videos\" src=\"http:\/\/brianwong.com\/blog\/wp-content\/uploads\/2008\/09\/related-videos.png\" border=\"0\" alt=\"Related-Videos\" hspace=\"4\" vspace=\"4\" width=\"430\" height=\"243\" \/><\/p>\n<p>So have you ever wanted your embedded YouTube video to automatically play (autoplay) when your page loads? How about turning off the \u201crelated video\u201d feature at the end the video?<\/p>\n<p>You\u2019ve come to the right place. After much experimenting, here are all the YouTube embed code variations to get your video just the way you want it. Just replace the video URL with the video you want to embed:<\/p>\n<p><strong>Default YouTube Embed Code:<br \/>\n<\/strong>&lt;object width=\u201d425\u2033 height=\u201d355\u2033&gt;&lt;param name=\u201dmovie\u201d value=\u201dhttp:\/\/www.youtube.com\/v\/EBM854BTGL0&amp;autoplay=1\u2033&gt;&lt;\/param&gt;&lt;param name=\u201dwmode\u201d value=\u201dtransparent\u201d&gt;&lt;\/param&gt;&lt;embed src=\u201dhttp:\/\/www.youtube.com\/v\/EBM854BTGL0&amp;rel=1&amp;border=0\u2033 type=\u201dapplication\/x-shockwave-flash\u201d wmode=\u201dtransparent\u201dwidth=\u201d425\u2033 height=\u201d344\u2033&gt;&lt;\/embed&gt;&lt;\/object&gt;<br \/>\n<strong><br \/>\nCode to Autoplay a YouTube Movie:<\/strong><br \/>\n&lt;embed src=\u201dhttp:\/\/www.youtube.com\/v\/EBM854BTGL0&amp;autoplay=1\u2033 type=\u201dapplication\/x-shockwave-flash\u201d wmode=\u201dtransparent\u201d width=\u201d425\u2033 height=\u201d344\u2033&gt;&lt;\/embed&gt;<\/p>\n<p><strong>Code to turn off RELATED MOVIES at the end of the movie<br \/>\n<\/strong>&lt;embed src=\u201dhttp:\/\/www.youtube.com\/v\/EBM854BTGL0&amp;rel=0&amp;border=0\u2033 width=\u201d425\u2033 height=\u201d344\u2033 type=\u201dapplication\/x-shockwave-flash\u201d wmode=\u201dtransparent\u201d&gt;&lt;\/embed&gt;<\/p>\n<p><strong>Code to Autoplay YouTube Movie AND turn OFF related movies at the end of the movie:<\/strong><br \/>\n&lt;embed src=\u201dhttp:\/\/www.youtube.com\/v\/EBM854BTGL0&amp;autoplay=1&amp;rel=0\u2033 type=\u201dapplication\/x-shockwave-flash\u201d wmode=\u201dtransparent\u201d width=\u201d425\u2033 height=\u201d344\u2033&gt;&lt;\/embed&gt;<\/p>\n<p>By Brian Wong<\/p>","protected":false},"excerpt":{"rendered":"<p>Here are some problems I face when embedding YouTube videos on my website. (Autoplaying YouTube videos.) First, the user has to click on the \u201cplay\u201d button for the video to play. People who are new to online video might not even know to how to do that. Second, at the end of the video, the<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[114],"tags":[],"class_list":["post-3155","post","type-post","status-publish","format-standard","hentry","category-youtube"],"_links":{"self":[{"href":"https:\/\/misuniversity.com\/members\/wp-json\/wp\/v2\/posts\/3155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/misuniversity.com\/members\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/misuniversity.com\/members\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/misuniversity.com\/members\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/misuniversity.com\/members\/wp-json\/wp\/v2\/comments?post=3155"}],"version-history":[{"count":0,"href":"https:\/\/misuniversity.com\/members\/wp-json\/wp\/v2\/posts\/3155\/revisions"}],"wp:attachment":[{"href":"https:\/\/misuniversity.com\/members\/wp-json\/wp\/v2\/media?parent=3155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/misuniversity.com\/members\/wp-json\/wp\/v2\/categories?post=3155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/misuniversity.com\/members\/wp-json\/wp\/v2\/tags?post=3155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}