[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
RE: Re: xPLMediaNet Seems to Work!
- Subject: RE: Re: xPLMediaNet Seems to Work!
- From: "Tony Tofts" <tony@xxxxxxxxxx>
- Date: Mon, 14 Mar 2005 10:29:16 -0000
> That should save a lot of coding (or at least, a lot of cutting and
> pasting!)
Yep :-)
> Are these modules dlls, or individual processes? How are
> they communicating with each other?
Each module is a dll
They communicate thru the core providing a pointer to them (it maintains
lists of special dll's - clients, sources, transcoders and helpers, and all
others are considered standalone like dhcp).
In the 'helper' version above they call a standard function in each helper
Action(Args() as string) as string()
Having identified the particular helper they want to use (by it's
user-defined title in xplmedianet.xml)
I've opted for arrays of string type as these allow easy passing/parsing of
parameters and return values
Obviously helpers have to conform to certain standards, but can return
extra
info above and beyond the standard.
For a tags helper the standard (at the moment!) is to return an array of 5
strings containing Genre, Artist, Album, TrackNo and Track title, having
been passed a single string of path/filename
Below is the current 'test' version of xplmedianet.xml (and is subject to
change, and doesn't show transcoders)
Regards
Tony
<configuration>
<core>
<settings ip="192.168.1.100" />
<settings clients="53000" />
<hub enabled="y" />
</core>
<source>
<main module="MEDIA" enabled="y"
title="Music" type="M" scanner="y" />
<settings database="" />
<settings paths="c:\MP3,C:\MVPTEST" />
<settings stats="Y" months="2" />
<menus artist="Artist" album="Album"
track="Track" genre="Genre"
playlist="Playlist" query="Query" />
<titles main="Music Selection" artist="Artists"
album="Albums"
track="Tracks" genre="Genres"
playlist="Playlists" query="Queries" />
<scan ext="mp3" helper="mediatags" />
<scan ext="wma" helper="mediatags" />
<scan ext="wav" helper="mediatags" />
<scan ext="flac" helper="mediatags" />
<scan ext="ogg" helper="mediatags" />
</source>
<source>
<main module="BROWSE" enabled="n" title="Browse
Music" type="M" />
<settings paths="c:\MP3" />
<scan ext="mp3,wma,wav,flac,ogg" />
</source>
<source>
<main module="MEDIAV" enabled="n"
title="Videos" type="V" />
<settings database="" />
<settings paths="c:\MVPTEST,C:\MVPTEST2" />
<scan ext="mpg,mpeg,wmv,avi" />
</source>
<source>
<main module="MEDIAP" enabled="n"
title="Pictures" type="P" />
<settings database="" />
<settings paths="c:\MVPTEST" />
<scan ext="bmp,jpg,jpeg,gif,png" />
</source>
<source>
<main module="SHOUTCAST" enabled="y"
title="Shoutcasts" type="M" />
<proxy server="" port="" />
<settings database="" />
<menus shoutcast="Shoutcast" />
<titles main="Shoutcast Selection"
shoutcast="Shoutcasts" />
<saveto path="c:\mp3" artist="unknown"
album="shoutcast"
title="{stream}" genre="Other" auto="y" />
</source>
<source>
<main module="WEBCAMS" enabled="n"
title="Webcams" type="P" />
<proxy server="" port="" />
</source>
<source>
<main module="TIVO" enabled="n"
title="Tivos" type="V" />
<tivo ip="192.168.1.40" name="Main" />
<tivo ip="192.168.1.41" name="Test" />
</source>
<client>
<main type="rio" enabled="y" module="RIO"
/>
<settings volume="25" balance="0"
contrast="5" brightness="48"
lineout="n" />
<settings clock="y" clocklight="20"
clock24hr="n" />
<patch usebold="y" />
<load module="SSDP" port="21075"
portmap="111" />
<load module="MOUNT" port="21077" />
<load module="NFS" port="21078"
filename="helpers\receiver.arf" />
<load module="PORTMAP" port="111"
mount="21077" nfs="21078" />
<load module="TRIO" port="19680" />
</client>
<client>
<main type="mvp" enabled="n" module="mvp"
/>
<settings tvtype="pal" tvconnect="composite"
tvaspect="4:3"
tvflicker="medium" />
<settings bgcolour="0,0,0" fgcolour="255,255,255"
font="Arial"
fontsize="18" fontbold="N" fontitalic="N"
/>
<menu coverart="Y" left="389" top="9"
width="200" height="200"
details="Y" margin="16" artist="220"
album="250" track="280" volume="N" />
<movies top="32" left="0" width="176"
height="136" columns="3" rows="2"
frametime="2" thumb="" altthumb="jpg"
altimage="noimage.bmp" />
<pictures top="32" left="0" width="176"
height="136" columns="3"
rows="2" slideshow="5" />
<load module="BOOTP" port="16867"
filename="dongle.bin" />
<load module="TFTPD" port="16869"
filename="dongle.bin" />
<load module="MVPDISCOVERY" port="16881" />
</client>
<client>
<main type="slim" enabled="n"
module="slim" />
<load module="SLIMDISCOVERY" port="3483" />
</client>
<client>
<main type="exstr" enabled="y"
module="exstr" stream="2020"
command="12301" />
<load module="EXSTRDISCOVERY" port="12321" />
</client>
<dhcp>
<core module="DHCP" enabled="y" />
<settings netmask="255.255.255.0"
router="192.168.1.1" dns="192.168.1.1"
start="180" end="190" />
<options mac="00:90:00:11" bootfile="/boot"
hostname="mercury"
rootpath="/export/mercury" />
</dhcp>
<web>
<core module="WEB" enabled="n" port="8080"
/>
<coverart enabled="Y" filename="folder.jpg"
width="200" height="200"
album="jpg" />
<albumthumbs enabled="Y" filename="folder.jpg"
width="40" height="40"
album="jpg" />
<jukebox filename="folder.jpg" width="120"
height="120" columns="6"
album="jpg" tracks="Y" play="N"
clear="Y" />
</web>
<mediatags>
<helper module="TAGS" enabled="y" />
<mp3 format="" tags="Y" />
<wma format="" tags="Y" />
<wav format="{title}" />
<flac format="" tags="Y" id3="N"
vorbis="Y" genre="genre"
artist="artist" album="album" track="track"
title="title" />
<ogg format="" tags="Y" id3="N"
vorbis="Y" genre="genre" artist="artist"
album="album" track="track" title="title"
/>
</mediatags>
<utility>
<load module="MEDIACAST" enabled="n"
port="8000" password="password"
buffer="16" />
<load module="TTS" enabled="n"
url="192.168.1.50:48000" />
<load module="PRONTO" enabled="n"
artists="Y" albums="Y" playlists="Y"
clear="Y" std="Y" pro="Y"
profontcol="70" probackcol="0" />
<load module="VOICE" enabled="n"
artists="Y" albums="Y" playlists="Y" />
</utility>
</configuration>
xPL Links: http://www.xplproject.org.uk http://www.xplhal.com http://www.xpl.myby.co.uk
To Post a Message: ukha_xpl@xxxxxxx
To Subscribe: ukha_xpl-subscribe@xxxxxxx
To Unsubscribe: ukha_xpl-unsubscribe@xxxxxxx
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|