Navarr's Tech Side The Technical Side of my Life

27Oct/099

YouTube Mini Audio Player

If you read my personal blog (which a lot of you probably don’t even know exists) you’ll commonly see music embedded as mini-YouTube embeds.  It turns out, the magic height is 25 pixels, and the magic width (for play/pause and mute) is 62 pixels.

However, it is kind of a burden to do this every time you want to embed a mini player (you have to edit at four fields in the HTML!)  So to simplify this process, I, like any programmer before me, created a generator.  Just type in the URL to the YouTube video and press make, and you’ll get a preview as well as the cross-browser HTML-esque mess of a code to embed.

Of course, if you’re truly lazy, just drag the bookmarklet below to your bookmark bar in your web browser, and click it on any YouTube video and you’ll be taken to the page with the code already generated.

Generate Mini-Player

Source code is available via link at the bottom of the page.

80x15[1]

class::Scrobbler by Navarr T. Barnier is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
Based on a work at gtaero.net.
Permissions beyond the scope of this license may be available at mailto:navarr@koneko-chan.net.