I would recommend at this point that you go directly to the site that supports that code and ask for help. I had never seen their site before I mentioned it to you - I just found it in a Google search for "open source MP3 player" or something like that. I did get the JW Player to work, so I did not need to go elsewhere, but understand your desire to do so.
The folks at that site will answer you more quickly and accurately that I could, and I would need to stumble around with their code to keep trying variations on a theme until it works.
Poking around briefly on the flash-mp3-player.net pages, I see they have a code Generator, and it creates a chunk of code with an autoload and autoplay functionality, and appears to me that it is creating an embedded object.
Code: Select all
<object type="application/x-shockwave-flash" data="http://YourFullDomainURL/YourSubFolderWhereTheSWFFileIsLocated/player_mp3_maxi.swf" width="200" height="20">
<param name="movie" value="http://YourFullDomainURL/YourSubFolderWhereTheSWFFileIsLocated/player_mp3_maxi.swf" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="mp3=mp3%3Dhttp%3A//www.cn-invicta.com/barracuda.mp3&autoplay=1&autoload=1" />
Oddly, I do not see where they ever call the XML file, not even in the case of a playlist. Look at the source code of the pages and you'll see how they load multiple MP3 filenames in the FlashVars, separated by a "pipe" symbol. It appears you can completely ignore any inclusion of an XML file for your site.
I suspect if you get the path correct, that you will not need anything except the SWF file to be loaded into the subfolder that you identified, and the MP3 file loaded into the subfolder that you identified (note that the flashvars within the object code use escape characters in the URL string to the MP3 URL), and the <object> code to be within the body section of the webpage (not in the <body> tag, but anywhere between
I had been thinking that you may need to call the player to play when the page opens, within the HTML <BODY> tag :
maybe something like:
Code: Select all
<BODY onload="document.getElementById("myFlash").SetVariable("player:jsPlay", "");">
but now that I actually looked around their site and see the embedded object code, I don't think you need anything extra within the BODY tag.
I just don't have time to explore this further. This will end my attempt to assist on this code that I have never used (but that appears to do what you want), and if the above info is not quite enough to get you to where you need to go, please contact the folks at the site where this particular player is supported.