Reply to Re: Flash mp3 player problems.....

Your name:

Reply:


Posted by Ralph Hφglund on 11/03/33 11:38

cwdjrxyz skrev:
> Ralph HΓΆglund wrote:
>
>
>
>
>>I do not really understand what you (cwdjrxyz) are talking about.
>> My original issue was to convert from m3u-playlist to
>>xml-playlist. The player I have is excellent and I have no
>>intention to go into your complicated descriptions.
>
>
> Just for the record, a .wax is an xml playlist that can contain as
> little as a single song, but it is designed to work on the WMP and a
> few other players, not flash. Likewise a Real .ram can direct to a SMIL
> file, which is a xml language that contains a sequence of media as well
> as many other possible things.
>
> Now the method you are using apppears to be based on a flash format,
> and you say you need a xml playlist for it instead of an m3u one that
> you apparently have. The question then becomes does your player accept
> an xml play list at all, and if it does, what is the documentation for
> this. Surely there should be some information concerning this on sites
> associated with the player or any possible discussion groups concerning
> your player, if the player will support an xml play list. There are
> very many types of play lists, some xml and some not. Thus finding
> written documentation of the structure of the playlist required for the
> player is critical, although one might be able to make guesses and hack
> a playlist structure with enough effort.
>
OK, thank you for clarification. Yes, I have all information on
what is needed, look here:

This is the code in the .fla-script for loading the playlist:

// XML (Playlist + Arrayhandling)

data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = ladeDaten;
data_xml.load(playlist);

function ladeDaten(success) {
if (success) {
aPath = new Array();
songTitel = new Array();
songArtist = new Array();
songCover = new Array();
audioTracks = new Array();
audioTracks = this.firstChild.childNodes;
totalAudio = audioTracks.length;
for (var i=0; i<totalAudio; i++) {
if (audioTracks[i].nodeName == "song") {
aPath.push(audioTracks[i].attributes.path);
songTitel.push(audioTracks[i].attributes.title);
songArtist.push(audioTracks[i].attributes.artist);
songCover.push(audioTracks[i].attributes.bild);
}
}
AudioPath = aPath[0];
titel = songTitel[0];
artist = songArtist[0];
aktAudio = 1;
trackAnzeige = aktAudio+" / "+totalAudio;
status = "Status: Spellista - Laddad";
if (playerlook) setCover(0);
erstesBild = true;
} else {
status = "Status: Spellista - Ej laddad";
}
delete audioTracks;
delete data_xml;
}
----------------------------------------------------------

This is the format for the xml-file (example file with only path
and title, artist and bild(picture) can be contained if necessary):

<?xml version="1.0"?>
<songs>
<song path="URL/songtitle1.mp3" title="songtitle1"/>
<song path="URL/songtitle2.mp3" title="songtitle2"/>
</songs>

Format for the m3u-file (example file):

URL/songtitle1.mp3
URL/songtitle2.mp3

----------------------------------------------------------

I think that the best method is to create the xml-file from the
data sitting in the m3u-file in the php-script that I use for
uploading the playlist to the server. It is just that my
knowledge in php programming is rather limited at this point. I
have though found that the methods for handling text data and
file reading/writing reminds me a lot of PERL, am I right?

Regards,
Ralph

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация