Widescreen YouTube Embeds

Late last year I posted a jQuery function to replace the standard YouTube Flash player with a tweaked version that improves the aesthetics by removing the background gradient in the control bar. Hayden Hunter has provided a useful extension that queries YouTube’s API and further modifies the embed code to produce a player that respects the video’s widescreen aspect ratio if set.

I’ve placed the new code on Pastie under a Creative Commons attribution license: pastie.org/871790

Written and designed by Matthew Buchanan. Colophon. Please give credit. Email me.