|
From: Arion L. <ar...@ar...> - 2003-07-15 21:51:03
|
Attached is a patch to Streamsicle v2.0 that adds support for viewing pictures embedded within MP3 files. The ID3v2.3 standard provides a clear description of how these pictures should be embedded and extracted from an ID3 frame titled 'APIC'. The patch included here will display any embedded picture below the currently playing song -- and in the ID3 details screen. My motivation for implementing APIC support is that embedding pictures within MP3 files has been made very easy on my Mac OS X box with iTunes4 (http://www.apple.com/itunes/) and Clutter (http://www.sprote.com/clutter/). To see how this patch works, you can check out my Streamsicle feed at: http://www.arion.net/streamsicle/. I'm not really planning on having Streamsicle accessible onside of my home network, so I'll probably take that link down eventually... and sorry, I don't allow remote users to connect to the stream. The cover art pictures in my MP3s are often pretty large (up to 100k or so). The <IMG SRC=> tag within the Streamsicle JSP includes a fixed width attribute to force web browsers to scale the images... I've had this patch running on my Streamsicle server at home for a few weeks straight so I think its pretty stable -- extracting a picture is an autonomous function, no picture data is ever retained in memory by Streamsicle (other than a flag saying that the song has a picture). Let me know if you have any questions. Hopefully this patch will make its way into the Streamsicle CVS tree... -Arion |