Jump to content

PHP and audio player can anyone help?


petelcj

Recommended Posts

Hi there I am a university student in my final year and in my major project I am looking to allow users to upload music to a site and for the music that is uploaded to be attached to a flash audio player so that it can be listened to on the webpage.

 

I was wondering if anyone can help me, by telling me what is needed to allow this to happen. Also if anyone knows any helpful sites which could help me in this process that would be amazing.

 

It would be very much appreciated if anyone could help.

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/84506-php-and-audio-player-can-anyone-help/
Share on other sites

This is how I would implement it (Do you know any actionscript and/or how to use Flash?)

 

After I upload the file (using PHP), i'd save the file info/directory into an XML file (create the xml file using PHP)

 

This XML file can then be loaded by a Flash movie coded to read through the XML file - the song info and directory should be in this XML file.

This flash movie can contain all your controls to play/stop/adjust volume/make playlist etc etc etc....

 

This method is dependent on you knowing Flash and some ActionScript, of course, so it may not work for you.

 

I made a flash mp3 player (not complete, but does most of the job) - send me a PM if you want to see the code for it. It reads through an XML file to find the mp3 info and then plays/stops/pauses/adjusts volume. It is coded in AS3.0 using a class structure (.as files)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.