YouTube Intros New Video Embed Format, Replacing Flash With HTML 5

Jul 23rd, 2010 | By | Category: Internet TV, Video

YouTube has announced a new option for video embeds, designed to support HTML 5 and to fall back to Flash where HTML 5 is not supported.

According to YouTube, “If you use the new embed code style, your viewers will be able to view your embedded video in one of our Flash or HTML5 players, depending on their viewing environment and preferences. In instances where HTML5 isn’t supported (e.g. our HTML5 player can’t play videos with ads), we use Flash.”

This new style uses <iframe> and looks like this:

<iframe type=”text/html” width=”640″ height=”385″ src=”http://www.youtube.com/embed/VIDEO_ID” frameborder=”0″>
</iframe>

An additional benefit of the new embed style is that it will eventually allow embeds to work on mobile devices, which typically use a built-in player instead of Flash or HTML5.

Note: The new embed code is currently for developer testing and hasn’t replaced the default embeds – but it looks like YouTube may be moving to marginalize Flash sooner rather than later.

I’ve embedded a video both ways below so you can compare them.

Current Embed Code:

New Embed Code:

Tags: , ,

2 Responses to “YouTube Intros New Video Embed Format, Replacing Flash With HTML 5”

  1. Barry Walker says:

    Is it just me or is it still playing flash in Firefox?

    I have the latest version which supports html5 so i take it youtube arent using ogg

  2. Joanne Mesidor says:

    I want the Android Look (or another interface) without having to change phones and wasting all the apps I bought. I get bored with the Apple Interface of just apps

Leave a Reply