Thanks for your input!
The separate <module>-part will definitly be used.
> If the spraydio-module needs to parse a html-page,
> I think the url should be included in the xml to
> make it easier/possible to generalize the modules.
Yes, the spraydio-module will parse html-pages, but
I think we should put the least needed information
in the XML-file and let the module create the URL from
that so we don't have to change 15 entries in the XML
if spraydio changes the path or hostname.
The shoutcast module will get the data from the currently
connected server so it doesn't need any parameters.
> I think the genres and the lang is part of the
> station description. I put the homepage inside
> to provoke some feedback :-)
:) Yes, it should be part of the description.
> The <genres> surrounding the <genre>s is mostly a
> visual thing. (However, this makes lang="en"
> useless) Likewise for <streams>
I think <genres><genre></genre></genres> is a bit too
verbose since most stations won't use more than maybe
three genres anyway.. Same thing with <lang></lang>.
<streams> make sense though, because we may want an
easy way to access all streams..
How about this? :
<station name="�berkewl st4t10n" type="music">
<!-- The module gothicradio parses stations at gothicradio.net which is a totally
made up site :) -->
<module name="gothicradio">
<!-- �berkewl st3t10n has ID 42 at gothicradio.net -->
<param name="id">42</param>
</module>
<info>
<genre>Punk</genre>
<genre>Industrial</genre>
<genre>Country</genre>
<lang>jp</lang>
<desc lang="fi">yksi kaksi kolme</desc>
</info>
<streams>
<stream codec="WMA" kbps="96" br="41000" ch="2">
<asx href="http://server/file.asx"/>
<asx href="http://otherserver/file.asx">
<!-- Optional extra stuff to asx: -->
<exclude>.*/splash\.(asf|wmv)</exclude>
</asx>
<media href="mms://127.0.0.1:666/stream.wma"/>
<media href="mms://192.168.0.1:25/stream.wma">
<!-- Try to seek 123 seconds to skip annoying jingle -->
<seek>123</seek>
</media>
</stream>
</streams>
</station>
I think the format should be as generic as possible,
kind of a XMLTV for webradio that can be used for other
projects also.. Maybe we can use a directory with several
.xml-files and Freevo's autogen.sh just concatenates them
inside a <freevo><webradio></webradio></freevo> to a
.fxd-file :) That would also make it much more maintainable..
Regards,
Per Wigren
-----Original Message-----
From: Eirik Meland <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: 06 Oct 2003 10:23:18 +0200
Subject: Re: [Freevo-devel] DOH, I forgot to include the file :P
Per Wigren <[EMAIL PROTECTED]> writes:
> <?xml version="1.0" ?>
> <freevo>
>
> <webradio>
>
> <station name="Spraydio Visby" type="music" module="spraydio:visby">
A more xml-ish syntax would be:
<station name="Spraydio Visby" type=music">
<module name="spraydio">
<param name="something">visby</param>
</module>
..
If the spraydio-module needs to parse a html-page, I think the
url should be included in the xml to make it easier/possible to
generalize the modules.
<station name="NRK P1" type="generic">
<description lang="en">
<genres>
<genre>News</genre>
<genre>Music</genre>
<genre>Talk</genre>
</genres>
<lang>no</lang>
<homepage>http://www.nrk.no</homepage>
Norwegian family channel
</description>
<streams>
<stream codec="MP3" kbps="128" br="44100" ch="2">
<url type="m3u">http://media.hiof.no/streams/m3u/nrk-p1-128.m3u</url>
</stream>
<stream codec="WMA" kbps="48" br="32000" ch="2">
<url type="asx">http://www6.nrk.no/nettradio/nrk_p1_hoy.asx</url>
</stream>
<stream codec="MP3" kbps="56" br="22050" ch="2">
<url type="m3u">http://media.hiof.no/streams/m3u/nrk-p1-56.m3u</url>
</stream>
<stream codec="WMA" kbps="16" br="16000" ch="1">
<url type="asx">http://www6.nrk.no/nettradio/nrk_p1_lav.asx</url>
</stream>
<stream codec="MP3" kbps="24" br="8000" ch="2">
<url type="m3u">http://media.hiof.no/streams/m3u/nrk-p1-24.m3u</url>
</stream>
<streams>
</station>
I think the genres and the lang is part of the station description. I
put the homepage inside to provoke some feedback :-)
The <genres> surrounding the <genre>s is mostly a visual thing.
(However, this makes lang="en" useless)
Likewise for <streams>
Since type is a required attribute inside url, it is _maybe_ better to
make tags of m3u, asx etc
--
Eirik Meland
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel