Can anyone figure out how to create a dynamic playlist using coldfusion? I'm using this media player: <OBJECT id="VIDEO" width="320" height="240" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"> <PARAM NAME="URL" <cfoutput query="music">VALUE="#music#"</cfoutput>> <PARAM NAME="SendPlayStateChangeEvents" VALUE="True"> <PARAM NAME="AutoStart" VALUE="True"> <PARAM name="uiMode" value="FULL"> <PARAM name="PlayCount" value="9999"> </OBJECT> Code (markup): And I would like the playlist to change depending on which band the user is viewing. Right now the media player ignores the repeat region: <cfoutput query="music">#music#</cfoutput> It will only play the first returned record for the selected band. So can you make this player play multiple songs from a dynamicly created playlist.
Does anyone know if you can use cfml in an xml file. If so how do you do it, and how do you get the xml file to update dynamicly.
Hi! I am trying to create a dynamic playlist using coldfusion as well. Did you ever find how to get this done? if so please share with me. I have a page that lists some artistes and each individual's details can be view on another page that is called via their ID in the URL. I want that their music is passed along to that page as well. I placed the playlists file in the table in the db but have not even gotten to trying to get that to work as yet. since the code for the player is throwing an error. --------------------------------------------------------------- Invalid CFML construct found on line 43 at column 96. ColdFusion was looking at the following text: \" The CFML compiler was processing: * An expression that began on line 43, column 89. Your expression might be missing an ending "#" (it might look like #expr ). * The body of a cfoutput tag beginning on line 34, column 2. The error occurred in C:\CFusionMX7\wwwroot\southcentral\talent_home.cfm: line 43 41 : // <![CDATA[ 42 : 43 : var so = new SWFObject("ep_player.swf", "ep_player", "301", "16", "9", "#FFFFFF"); Anyone out there with some help would be nice at this time.?
I have built a work around that i can share with you... but the problem you are having in the error you posted is with the color you specified. Any time you use #ffffff inside of coldfusion output tags you must wright it like this "##ffffff".. This is because coldfusion thinks you are referancing a variable and you forgot to close it in... Did you say that you store the xml playlist file in your database table?
Hi, I fixed the error with the player. Thanks for the tip. I have the mp3 files names entered in a 'Media' table with Categories MediaID, Media_File, Category, TalentID.