Re: [greenstone-users] Streaming MP3's

From Michael Dewsnip
DateFri, 10 Sep 2004 16:09:09 +1200
Subject Re: [greenstone-users] Streaming MP3's
In-Reply-To (1094606299-2830-14-camel-localhost-localdomain)
Hi Jim,

> Hello All,
> I have a collection of MP3's I'd like to serve up using Greenstone. I
> have mod_mp3 set up to stream the media out of apache. Now I'd like to
> call the streams using M3U files indexed by Greenstone. Is this
> possible?
> These are lectures and public readings by academics and writers, so
> metadata is important for selection and access. I know I can write HTML
> with descriptions and link the M3U files from web pages, but this seems
> like extra work since I'd already be entering metadata in GLI. Is there
> a way I can attach the metadata to the M3U file itself and skip the

Yes, there is. In the GLI, you can assign metadata to M3U files just like
any other file. Then, you want the M3U files to be processed by UnknownPlug
(Design pane -> Document Plugins):

plugin UnknownPlug -process_exp ".m3u$" -assoc_field "M3UFile"

Lastly, you would probably want to change the formatting of the search
results and classifier lists to have a link to the M3U file, and hide the
link to the Greenstone document (which will be essentially empty).
Something like

format VList "<td valign=top><a

would get you started (Design pane -> Format Features).

Hope that makes some sense,