Skip to main content

Who needs flash? YouTube embeds now does HTML5

Hooray! Embedded YouTube videos are beginning to work without Flash. How? YouTube announced they are experimenting with new embed code that uses the iFrame interface to switch between Flash and HTML5 versions of the video. The code will sense the type of device you’re on so, as en example, if you’re on your PC and you want to play ‘double rainbow’ you’ll get the video in Flash. If you’ve enabled HTML5 in YouTube and using Safari, you’ll see the MP4 version below. If you are on a new version of Firefox and its available, it will kick in WebM video.  Eventually.  It is still in beta.

[youtube http://www.youtube.com/watch?v=MX0D4oZwCsA&w=640&h=385]

For instance, to embed the above video, you need to use this code:

[youtube http://www.youtube.com/watch?v=MX0D4oZwCsA&w=640&h=385]

Here are the downsides to this awesome innovation. Videos that are ad supported won’t work on HTML5, website managers will have to manually adjust the video code (don’t adjust the player size!), and YouTube HTML5 will need to be enabled on your iOS device. OK, fanboys, you can go back to hating on Google now.

 

via NewTeeVee.

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Mac — experts who break news about Apple and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Mac on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Comments

Author

Avatar for Seth Weintraub Seth Weintraub

Publisher and Editorial Director of the 9to5/Electrek sites.


Seth Weintraub's favorite gear

Manage push notifications

notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications
notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications