Quantcast
750×100
Read WebProNews
With Friends!

YouTube Shows Future Standard Embed Code

New YouTube Embed Code Uses iframe

Get the WebProNews Newsletter:

YouTube has introduced a new way to embed videos. The new style uses an <iframe>.

Viewers of videos which use the following embed code style will be able to view the embedded video in one of YouTube’s Flash or HTML5 players, depending on viewing environment and preferences:

<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/VIDEO_ID" frameborder="0">
</iframe>

YouTube Player

YouTube lists environments that support HTML5 here. They just use Flash when it’s not supported.

"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," says YouTube software engineer Toliver Jue on YouTube’s API Blog.

YouTube evidently intends to make this the standard embed code for users eventually, but for now they’re just previewing it.

Top Rated White Papers and Resources
There is 1 Comment. Add Yours.
  1. 1 0
    afri cik

    wawawwwawa… I Like you..

    Reply

What do you think? Respond.

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>