How To Hide Youtube Bar

Recently I need to embed a video on a clients landing page I was making for them and they really wanted to use YouTube to host the video. Thing is… I didn’t want the video title and control bar to appear on the video. So after a ton of research and 2 hours of hacking code I came up with this solution. I still haven’t found away to make the video keep auto playing more than once, so if you know how or figure it out… please leave me a comment below.

Use the code and edit the Bold sections:

Where it says YOUTUBE URL HERE insert your youtube embed url, NOT the url of the YouTube page.

Now If you want the video to autoplay then at this code &autoplay=1 to the end of your YouTube URL.

It should look like this:

<div style=”width:380px; height:230px; overflow:hidden!important; text-align:center;”><br />

<object type=”application/x-shockwave-flash” allowScriptAccess=”never” allowNetworking=”internal” height=”410″ width=”380″ style=”position:relative; top:-90px;” data=”YOUTUBE URL HERE”>
<param name=”allowScriptAccess” value=”never” />
<param name=”allowNetworking” value=”internal” />
<param name=”movie” value=”YOUTUBE URL HERE” />
<param name=”wmode” value=”transparent” />
</object>

http://www.youtube.com/v/p9tL59oBbIY&hl=en_US&fs=1&rel=0&autoplay=1

5 Responses to “How To Hide Youtube Bar”

  1. Coty Schwabe says:

    Wow. I was actually wondering about this like a week or 2 ago. The only problem is the fact that you only have 11 mins to work with…

    Video Sales letters probably won’t work too well with this, but then again, maybe anything else.

    I was just going to use Camtasia with no controls!

  2. Fábio says:

    Hey, I tried that code and it wasn’t working, I just copied and pasted it and put my video’s url (http://www.youtube.com/v/yTWRsBj2OX0&hl=en_US&fs=1&rel=0)

    I can’t even see the video, nothing appears at all :|

  3. admin says:

    Just checked… it still works for me. My be you are messing something up in the copy and paste?

  4. ThL says:

    Hey, thanks for posting, if you want to loop the movie just put &loop=1 after the &autoplay=1 without any spaces and it will work.

    Regs,

    ThL

  5. admin says:

    Cool! I will have to try it out. Thanks

Leave a Reply

© 2010 Kevin Barnes. All rights reserved.
.