updated config files with title attribute created getXmlString() method in AudioClip, Playlist, PlaylistElement and FadeInfo replaced old (and bad) toXml() method with getMetadataString() in AudioClip
76 lines
3.3 KiB
XML
76 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!DOCTYPE storageClientFactory [
|
|
|
|
<!ELEMENT storageClientFactory (testStorage|webStorage) >
|
|
|
|
<!ELEMENT testStorage (playlist*, audioClip*) >
|
|
<!ATTLIST testStorage tempFiles CDATA #REQUIRED >
|
|
|
|
<!ELEMENT playlist (playlistElement*) >
|
|
<!ATTLIST playlist id NMTOKEN #REQUIRED >
|
|
<!ATTLIST playlist playlength NMTOKEN #REQUIRED >
|
|
|
|
<!ELEMENT playlistElement ((audioClip|playlist), fadeInfo?) >
|
|
<!ATTLIST playlistElement id NMTOKEN #REQUIRED >
|
|
<!ATTLIST playlistElement relativeOffset NMTOKEN #REQUIRED >
|
|
|
|
<!ELEMENT audioClip EMPTY >
|
|
<!ATTLIST audioClip id NMTOKEN #REQUIRED >
|
|
<!ATTLIST audioClip playlength NMTOKEN #REQUIRED >
|
|
<!ATTLIST audioClip title CDATA #REQUIRED >
|
|
<!ATTLIST audioClip uri CDATA #REQUIRED >
|
|
|
|
<!ELEMENT fadeInfo EMPTY >
|
|
<!ATTLIST fadeInfo id NMTOKEN #REQUIRED >
|
|
<!ATTLIST fadeInfo fadeIn NMTOKEN #REQUIRED >
|
|
<!ATTLIST fadeInfo fadeOut NMTOKEN #REQUIRED >
|
|
|
|
<!ELEMENT webStorage (location) >
|
|
<!ATTLIST webStorage tempFiles CDATA #REQUIRED >
|
|
|
|
<!ELEMENT location EMPTY >
|
|
<!ATTLIST location server CDATA #REQUIRED >
|
|
<!ATTLIST location port NMTOKEN #REQUIRED >
|
|
<!ATTLIST location path CDATA #REQUIRED >
|
|
|
|
]>
|
|
<storageClientFactory>
|
|
<testStorage tempFiles="file:///tmp/tempPlaylist">
|
|
<playlist id="1" playlength="00:00:34.000" >
|
|
<playlistElement id="101" relativeOffset="0" >
|
|
<audioClip id="10001" playlength="00:00:11.000"
|
|
title="one"
|
|
uri="file:var/test1.mp3" />
|
|
</playlistElement>
|
|
<playlistElement id="102" relativeOffset="00:00:11.000000" >
|
|
<audioClip id="10002" playlength="00:00:12.000000"
|
|
title="two"
|
|
uri="file:var/test2.mp3" />
|
|
<fadeInfo id="9901" fadeIn="00:00:02.000000"
|
|
fadeOut="00:00:01.500000" />
|
|
</playlistElement>
|
|
<playlistElement id="103" relativeOffset="00:00:23.000000" >
|
|
<playlist id="2" playlength="00:00:11.000000" >
|
|
<playlistElement id="111" relativeOffset="0" >
|
|
<audioClip id="10003" playlength="00:00:11.000"
|
|
title="three"
|
|
uri="file:var/test3.mp3" />
|
|
</playlistElement>
|
|
</playlist>
|
|
</playlistElement>
|
|
</playlist>
|
|
<playlist id="2" playlength="00:00:11.000000" >
|
|
<playlistElement id="111" relativeOffset="0" >
|
|
<audioClip id="10003" playlength="00:00:11.000"
|
|
title="three"
|
|
uri="file:var/test3.mp3" />
|
|
</playlistElement>
|
|
</playlist>
|
|
<audioClip id="10001" playlength="01:00:00.000"
|
|
title="one"
|
|
uri="file:var/test1.mp3" />
|
|
<audioClip id="10002" playlength="00:30:00.000"
|
|
title="two"
|
|
uri="file:var/test2.mp3" />
|
|
</testStorage>
|
|
</storageClientFactory>
|