PDA

View Full Version : Pocket Tunes API help


phreakonaleash
05-08-2007, 02:18 PM
Hey folks,

I am trying to create a wrapper function to add to the Pocket Tunes API (for my own use ;)) that will open and play an .m3u playlist. I believe I have the code right but when I try to pass the Action I made using PocketTunesCall() it tries to open my wifi connection then does nothing.

here is my pseudo:

allocate using AllocateAsynchronusActioNStruct
the pAction->action is kPocketTunes.. blabla bla openM3UPlayList
the URl is constructed as: "file://{cardname}{dir}" (cardname and dir are passed to my function)
call PocketTuensCall and pass the action i made.

but this doesn't work. has anyone gotten PocketTunes to open an m3u playlist?

PocketTunes API guide states that the url must be in the filebrowser API format, which imho is "file://{card}{dir}" as was in my function. I have also tried "VFFS://..." (which is stated in the pTunes api to stand for vfs fiel to pTunes)

Later daze from a confused

MetaView
05-09-2007, 02:13 AM
2PlayMe just opens the m3u on its own and plays it....

phreakonaleash
05-09-2007, 03:46 PM
My name isn't Henk Jonas though. :) I want pTunes to do the grunt work for me. :)
Anyways it is a little better. I can get it to open up plain mp3's but still am having trouble with m3u files...

MetaView
05-09-2007, 04:44 PM
If you don't want to do your own parsing, just send an email to ptunes. Tim will help you, it might take some time until he answers. I had the same problem but at the end thought that it might be better to do my own m3u handling.

phreakonaleash
05-09-2007, 04:54 PM
OK, I wasn't sure that it was appropriate to email them with support, but i will now. Thanks!
The problem is that I am, quite frankly, horridly bad at parsing stuff (and IMHO it destroys the code)
Thanks for the help Henk, and keep up the great work.

phreakonaleash
05-14-2007, 02:04 PM
So i got a reply: Pocket Tunes cannot open 'file://' m3u's, but only 'http://' m3u's. That is why it is attempting to connect to the net. Jeff said that the Exchange manager is supported but... That pTunes 4 had a bug that broke this.

So I suppose it is off to the parsing. :P

Later,