|
Prev: Strange error?
Next: Editing FLV
From: cwdjrxyz on 28 Jan 2006 20:25 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.
From: cwdjrxyz on 28 Jan 2006 21:26 cwdjrxyz wrote: > 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. You might try the forum at http://www.doom9.net/ . Go to their general/audio encoding section. This forum is mainly about video, but audio only subjects often are discussed. I should add that some of the things discussed at this site are not legal in all countries, but what you wish to do does not fall into that class. However if anyone wants to try some tricks to copy DVDs that might be discussed here, you had best know what the laws are where you live. Some very obscure formats and players have been discussed from time to time.
From: Ralph Höglund on 29 Jan 2006 03:48 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
From: Travis Newbury on 29 Jan 2006 10:37 Neredbojias wrote: > > Click on: "Musik-clips". This player reads xml-playlist fine. > All that I get is a blank little window. You got what you chose to get.
From: Travis Newbury on 29 Jan 2006 10:44
Ralph Höglund wrote: > >> 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. The m3u-Play list can easily be read by your Flash player. Then just add some code to convert it to the XML you want (thought XML is not sessesarily needed for the player) If you are going to use XML and FLash I would like to sugest a free extension for Flash (works in MX and better) It is called "XML Shortcuts" it allows you to access XML information by name rather than parent/child/sibling relationships. |