Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

edgecrush3r

macrumors newbie
Original poster
Mar 14, 2008
6
0
Hi guys,

I am currently working on a Firefly music streaming application for the iPhone (http://sourceforge.net/projects/ffmcrossfire).
So far, the application works great and playsback single files. Ofcourse my next step is to beeing able to play a whole album (or songs by an artists).

Does anyone know how to create and embed playlists on the iPhone??
I've tried creating SMIL files and embedding the QTPlayer (which work great on my PC), but doesnt seem to be working on my iPhone :(

Help would be appreciated!

Thanks,
Tony
 

edgecrush3r

macrumors newbie
Original poster
Mar 14, 2008
6
0
thanks a lot !! I will definitely have a look on this qtnext tag. I am pretty happy at least 1 usefull tag got implemented in the embedded version of QT. It was sure doing my heading finding <anyway> to create an playlist.

Cheers,
Tony
 

edgecrush3r

macrumors newbie
Original poster
Mar 14, 2008
6
0
Pffff.. after some heavy investigations on the qtnext tag, i finally got things working. strange behaviours to be noted though.

Herby a working example:
document.getElementById(p_elementid).innerHTML='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" '
+'height="30" codebase="http://www.apple.com/qtactivex/qtplugin.cab">'
+'<param name="src" value="'+ p_filename +'">'
+'<param name="qtnext1" value="<binairyproxy.php?enc_url=aHR0cDovL2xvY2FsaG9zdDozNjg5L2RhdGFiYXNlcy8xL2l0ZW1zLzcw> T<myself>">'
+'<param name="autoplay" value="true">'
+'<param name="controller" value="true">'
+'<param name="loop" value="false">'
+'<embed src="'+ p_filename +'"'
+' bgcolor="000000"'
+' width="320" height="255" autoplay="true"'
+' qtnext1="<binairyproxy.php?enc_url=aHR0cDovL2xvY2FsaG9zdDozNjg5L2RhdGFiYXNlcy8xL2l0ZW1zLzcw> T<myself>" '
+'controller="true" loop="false" pluginspage="http://www.apple.com/quicktime/download/"></embed>'
+'</object>';

.. note the following in the code p_filename is the file I am playing.
the qtnext parameter value doesnt like protocol identifiers such as 'http://' on the iPhone... also I had some issues when adding more than one HTTP parameter to the url (e.g. example stream.php?file=mysong.mp3&nocacheid=199312 )

cheers,
Tony
 

mike n

macrumors member
Nov 2, 2006
32
45
Pittsburgh, PA
previous and next buttons?

I tried that example, and everything seems to work (the files play in order), except that the previous and next buttons don't do anything. Anyone have any idea how to make those work so that I can click them to navigate to the next song?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.