Page 1 of 1

[SOLVED] Embedding an mp3 player / radio station

Posted: Thu Oct 22, 2009 10:23 am
by handcoded
Hi

I'm currently building a web site for expats radio who provide English radio shows for people living abroad who want a taste of home. They want to be able to have a schedule of programmes which link to an mp3 file which can be played back via teh web site without any 3rd party software having to be installed.

I first payed with podcastmanager which took me a while to figure out but eventually my mp3 files did appear but just as links to the mp3 file which isn't really what I want.

I next downloaded play which though I believe it can probably be useful to me and allow me to do what I want via a super easy admin interface I cannot get my mp3 file to work no matter what code I try to embed within my page.

The page in question is http://www.handcoded.co.uk/radio/index.php?page=listen

If I view the source code I can see this

Code: Select all

<object type="application/x-shockwave-flash" data="/modules/Play/bin/player_mp3_multi.swf" width="320" height="240">
	<param name="movie" value="/modules/Play/bin/player_mp3_multi.swf" />

	<param name="FlashVars" value="mp3=http://www.handcoded.co.uk/radio/uploads/mp3/demo.mp3&title=Demo" />
	<param name="wmode" value="transparent" />
</object></p>
<p> </p>
<object width="320" height="240" type="application/x-shockwave-flash" data="/modules/Play/bin/player_mp3_multi.swf">
<param name="movie" value="/modules/Play/bin/player_mp3_multi.swf" />
<param name="FlashVars" value="mp3=http://www.handcoded.co.uk/radio/uploads/mp3/demo.mp3 		&title=Demo 		" />
<param name="wmode" value="transparent" />
</object> 
I've since tried Dewplayer which looking at the dewplayer web site is very impressive. If I could have the playlist look that would be fab. The issue here is that if I specify an empty folder for the content and then add mp3 files to it these are not picked up be the player. If I edit the settings whilst an mp3 is included in the mp3 folder this mp3 file gets selected and added to the path causing a php error on the frontend.

Any help or advice to get play working for me would be appreciated.

Richard

Re: Embedding an mp3 player / radio station

Posted: Thu Oct 22, 2009 2:28 pm
by handcoded
okay so I need my eyes testing  8)

Looking at the source code that was being produced it was clear that none of my mp3's were loading as the url just finished off with mp3= and no name_of_file.mp3 was present. I went to the dewplayer web site and researched it as well as I could. I then re-installed the dewplayer. It still did not work but after creating a sub folder under uploads/mp3/ called sample I chucked in my mp3 files and hey presto.

I downloaded the dewplayer files from the official web site which allows me to display the player in different ways and I'm all set to go.

The moral of the story is that you specify the folder that contains your mp3 files in the dew player admin not upload your files to uploads/mp3/ but to /uploads/mp3/sample/

It would have been obvious if the installer had created this folder but you live and learn.