petelcj Posted January 4, 2008 Share Posted January 4, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/84506-php-and-audio-player-can-anyone-help/ Share on other sites More sharing options...
cooldude832 Posted January 4, 2008 Share Posted January 4, 2008 your in your final year at a "university" and you are doing a project in php and don't know how to do file uploads? the playing is done very easily as 90% of modern browsers have some sort of media player itengration Quote Link to comment https://forums.phpfreaks.com/topic/84506-php-and-audio-player-can-anyone-help/#findComment-430548 Share on other sites More sharing options...
petelcj Posted January 4, 2008 Author Share Posted January 4, 2008 Its not the file uploads that are the problem. Its how to actually make the music file which is uploaded be integrated on the fly with a flash audio player such as audio-player.js so that it can be played by the user on the webpage. Quote Link to comment https://forums.phpfreaks.com/topic/84506-php-and-audio-player-can-anyone-help/#findComment-430564 Share on other sites More sharing options...
nikefido Posted January 4, 2008 Share Posted January 4, 2008 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) Quote Link to comment https://forums.phpfreaks.com/topic/84506-php-and-audio-player-can-anyone-help/#findComment-430605 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.