YouTube Adds New iPad-Friendly HTML5 Video Player

YouTube HTML5 Player

YouTube announced a new HTML5 video player that works on the Apple iPad device. The player is smart enough to know whether it can display Flash or if it has to switch to HTML5 mode for a non-Flash enabled device.

I tested the new player against the regular YouTube player on an iPad and the new player still needs some work. The new player takes a longer to load, has some funky behavior (a duplicate window appears below the player), and the screen is bouncy when the player isn’t set to fullscreen.

I can see why the new player isn’t available from the regular video page yet.

Furthermore, in order to get the HTML5 version to load, site visitors must have gone to the YouTube HTML5 page and opted in as an HTML5 Beta tester.

This player is basically in development mode. I wouldn’t rush out and start changing all your embed codes but it is worth testing out, especially if it can help you with an existing issue.

This is sample code to embed the new player:

<iframe type=”text/html” width=”640″ height=”385″ src=”http://www.youtube.com/embed/VIDEO_ID” frameborder=”0″>

“VIDEO_ID” is the ID of the video which looks like an encrypted string. For the videos below, the ID is “FmWNwJRVK_g.”

I embedded a video using the new HTML5 player and also using the standard YouTube player to test on the iPad. I did this for my test but feel free to do the same and test it via your desktop/laptop and via your mobile device or iPad. Remember to opt in to the YouTube HTML5 Beta if you want the player to show up…or you’ll only get a black box in its place.

The New HTML 5 player


The standard YouTube embed method

What do you think? Is the new player useful yet? Will this solve any browser or platform issues for your videos?

Facebook
Twitter
LinkedIn
Email
Print