Google Blogoscoped


New YouTube embed code [PersonRank 10]

Friday, July 23, 2010
13 years ago13,628 views

YouTube announced a new embed code. It will be an iframe, example below.

<<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. Environments that support the HTML5 video player are listed here on our HTML5 settings page. In instances where HTML5 isn't supported (e.g. our HTML5 player can't play videos with ads), we use Flash.>>

<iframe class="youtube-player" type="text/html" width="640" height="385" src="" frameborder="0">

Jérôme [PersonRank 10]

13 years ago #

Awesome, clicking on the new embedded player doesn't direct you to the Youtube page but play/pause the video (at least here: This tiny change will considerably improve my Web experience.

Roger Browne [PersonRank 10]

13 years ago #

Yep, you only get to the YouTube page if you click on the watermark. [PersonRank 10]

13 years ago #

Or right click in the menu is also possible.

Forum home


Blog  |  Forum     more >> Archive | Feed | Google's blogs | About


This site unofficially covers Google™ and more with some rights reserved. Join our forum!