Embed YouTube Flash Video Player into WordPress

By request of danny and stchatterbox, here I tell you how to embed YouTube flash video player into your blog(wordpress).

Know about YouTube, the free video hosting

Add YouTube flash videp player code

  1. After you upload your video clips to YouTube, you get a link to the video clip like this:

    http://www.youtube.com/?v=dUTZvdgr42U

    The “dUTZvdgr42U” is your video ID, note it down.

  2. When you write your video blog entry, use the following HTML code. Replace “VIDEO_ID” with your video ID copied just now.
    [html][/html]
  3. Done. Please make a link back to www.youtube.com in your blog entry. (so that others know the great service, and as a appreciation the site)

Here is the sample result:


Powered by YouTube
*there is no playing bar, but loading bar works as normal.

Note: The code works for all HTML page, not specified to WordPress. WP user must write the code in single line, because WP auto insert new line tag between lines.

Thought:
Oh, video blogging is easy now! ;)
Too bad I do not have any video recording device, else you can see my strip dance! (of coz, I am just kidding!)

By the wayl, I am NOT SURE if this trick accepted by YouTube TOS. Use it at your own risk.

Share this:
READ ALSO:  Beginner’s Guide: Important Things To Consider Before You Buy Your First Tablet

You may also interested:

  • cheayee

    how about blogspot…?

    i tried it..but it said errors or something..

    thanks for trying so far though…

  • stchatterbox

    That’s simply too great, LIEW. I’ve read the TOS, and it mentioned nothing about it. I think the watermark is more than enough, and if we add a link back to youtube, that’d be fine!

    By the way, will it clash if I’ve more than 1 clip embedded on my page?

    Just a FEEDBACK of Youtube: I can upload my first video very well, but can’t upload the second one after using 4 hours. :(

    Haha…wondering if they set a daily limit? But seems they didn’t write about their limit except the 100 MB Upload.

  • stchatterbox

    Liew, tried your method embedding a movie to my page dedicated to video, but donnu why it won’t work!
    The movie screen shifted to the right, and the code: type=”application/x-shockwave-flash” width=”425″ is on the page!
    Overall, it was strange and didn’t work out. Just wonder what should I add? If there’s a flash plugin or something I should add to my blog? thanks

  • LcF

    show me your page or email me the code pls

  • Leona

    guys, there’s nothing wrong with your code nor your site. just check the width and as you paste the code, edit it a little to make sure there isn’t a break after the type onwards.

  • hey guys! we, the youtube developers, are ecastic about the developments we’re seeing on this page. what do you think we can do better to assist videobloggers in getting their content up? we want to provide a central repository for video content. at the same time, we want to expose these videos through APIs, RSS, embedded HTML, or anything else you can think of.

    please let us know how we can better fulfill the needs of the video blogging community…

  • kris

    thanks heaps! works great!!

  • Kevy Styles

    It works. Great! But after awhile it just shows up blank, at moment its showing up blank on this page aswell the sample clip you provided. Just thought let you know. Having the problem over at my own page too.

  • hey guys. here’s something else we just rolled out. while this will go on the FAQ later, i thought this was a good place to first publish the news. :)

    we created a simple way anyone with videos hosted on YouTube can put a listing of their videos on their homepage.

    try this HTML snippet.

    [Content for browsers that don’t support iframes goes here]

    let me know how that works out. thanks!

  • LcF

    Steve, the html code has been stripped by WordPress(my blog script)… Could you re-post it or send an email to me? Thanks.

  • Leona

    I had only manage to upload 3 vids to youtube.com. After that, I can never successfully upload a video, the connection with the site always get cut off and my video was not uploaded. Although the max vid size supposedly is 100mb, my vid size is only 20mb, yet it cannot get through. Also, there’s no status bar to show how many percent is being uploaded. would be great if there’s a better way of upload, say thru ftp or something. Thanks.

  • If it’s not trouble, you may want to try again. Last week, we had purchased a bundle of additional servers to scale to the traffic we’ve been seeing. Please let me know if you have any problems! Thanks and sorry for the trouble!

  • simbawang

    Thanks! works very well!

  • you may want to revisit the site again. we have recently released several more ways that you can share your videos (log in and check out the my videos -> share link). also, if you’re a developer, we’ve recently launched a suite of API calls that you can make to further integrate your site with YouTube. check out the developer section at the bottom of every page. thanks!

  • LcF

    Thank you, Steve. I will review the new YouTube. :)

  • Jimbob

    hey, i have ran into a problem i have uploaded a video that is 19 mb, and i did everythign the instructions said to but it just keeps showin that damn whale guy thing instead of my own video??? help………….

  • you have to change the video_id to the video_id of your video. we’re working on making this process a _lot_ more streamlined.

  • Okay! Done. We have massively simplified how you can do this. Just view any video on YouTube. There’s a copy+paste link, the third one down. If you use that HTML snippet, you can play the video directly from your website.

    Again, you heard it here first. :)

    It’s customary for updates to come here first.

  • LcF

    It is great, Steve!
    Now, I need to revisit YouTube and write another post about it. :)

  • sadkas

    it does not work on my site. any help? i write code in wysiwyg editor html. but i save, it has got a blank page. what s the problem. thanks for the help.

  • LcF

    sadkas: try in plain html text editor.

  • sadkas

    thanks a lot lcf. you are wonderfull. it works!!!!!!!!!!!!!!! thanksss

  • rs

    You may try Dailymotion, it have a native wordpress API support (as well a many others) to automagically put videos on your blog in a few clicks.

  • Ruben

    can any1 help me out..
    can any1 tell me step by step how i can put my video which is in youtube.com to my website..
    can any1 sen me a sample source code..

    this is my video..thanks

  • adam assila

    tnx tnx 100000000000 tnx man for the code , i can sleep now :D ,

  • For a *much* better (and versatile) way to embed YouTube (and iFilm, FLV, Google, etc.!) video in one personalized and skinned player, check out Green Generator

    You won’t look back :)

  • Patrick

    Hi, I have tried to use your code but trying to get other people you tude video and show in my blog but somehow it did not able to work it up. The screen just appeared as “loading”.

    Appreciated it if you could help to advise.
    Thanks!
    Patrick

  • LcF

    @Patrick: please show us the example page with the error for troubleshooting.

  • Patrick

    Hi, I have actually removed the code and tried other one and it seems working. Anyway, appreciated and thanks for your help.

    Thanks.
    Patrick

  • aHfUi

    Hi all,
    You can try this:-
    http://www.skarcha.com/wp-plugins/wpvideo/

    We just need type the [video][/video]

  • Patrick
  • It’s interesting that two years after YouTube developers posted here thanking the community for their input, that the same problem exists today – unable to embed a YouTube vid into WordPress (dot.org version).

  • Srinivas

    The code given is not working in wordpress

Do NOT follow this link or you will be banned from the site!