YouTube's shiny new HTML5 embed code is now live
<iframe>
tag. What does that mean to the average YouTube user? Well, for one thing, the new code adapts to users' viewing environments, serving HTML5 or Flash videos depending on your browser and settings. It's also a big step toward showing embedded YouTube videos on mobile devices that don't have a dedicated YouTube player.
If you want to try out this enhanced embedding capability on your own site, you can just copy-paste this block of code, and fill in the video ID for the video you want to embed:
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/VIDEO_ID" frameborder="0">
</iframe>
http://www.downloadsquad.com/2010/07/26/youtubes-shiny-new-html5-embed-code-is-now-live/
Don
No comments:
Post a Comment