YouTube Shows Future Standard Embed Code

By Sumon Hussain on Jul 22, 2010 in Social MediaNo comments     

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.

Related posts:

  1. Embed YouTube Videos in both Flash and HTML5
  2. Is Your Content Getting As Much Out of YouTube as it Could Be?
  3. Twitter Shows Embeddable Tweet Example
  4. YouTube Changes Default Size on Embeds
  5. Google Shows Its HTML5 Love with New Site
Tags: , , , , , , ,

Leave a comment