Google Blogoscoped

Forum

New YouTube embed code

WebSonic.nl [PersonRank 10]

Friday, July 23, 2010
3 years ago4,810 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=" youtube.com/embed/VIDEO_ID\" frameborder="0">
</iframe>

apiblog.youtube.com/2010/07/ne ...

Jérôme [PersonRank 10]

3 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: zorgloob.com/2010/07/25/snake- ...). This tiny change will considerably improve my Web experience.

Roger Browne [PersonRank 10]

3 years ago #

Yep, you only get to the YouTube page if you click on the watermark.

WebSonic.nl [PersonRank 10]

3 years ago #

Or right click in the menu is also possible.

This thread is locked as it's old... but you can create a new thread in the forum. 

Forum home

Advertisement

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

 

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