YouTube today started testing a new form of embedding code that would support both Flash and HTML5. Using iframes, the site will either use the Flash plugin or switch to HTML5 depending on the browser and device. It will only force Flash when the video requires features HTML5 can’t yet handle, such as ad overlays.
The approach should lead to embedded videos working on any device with HTML5 video support, such as Android phones and iPhones.
Only developers currently have access to the code at present, but YouTube plans to roll out the hybrid embedding to its regular pages sometime in the future.