I would like to play a radio stream in Quartz Composer. This would be the first step in developing a new kind of radio player with (i hope) interesting visuals to accompany the audio.
Given a URL like this:
http://provisioning.streamtheworld.com/pls/KKCM.pls
I would like the composition to play the audio.
Quicktime Player will stream the station, so I’m hopeful there is a way to get Quartz Composer to do it, but I’ve been unable to figure it out.
update: My own research has continued and I don’t think there is a way to do this without writing a new Quartz Composer plug-in in objective-c. The most promising QC patch I found was the movie importer, but I could not make that work. If anyone knows of an existing plug-in, please chime in.
There’s no built-in way to retrieve arbitrary network data — built-in, you can only retrieve images (
Image Importerpatch) and XML (XML Importerpatch).Give http://kineme.net/product/NetworkTools a try — its
HTTP Querypatch will let you download the.plsfile; then (since it’s a pretty simple format) you can parse it using either the built-inStringpatches or the built-inJavaScriptpatch.