aniesh82 Posted January 30, 2008 Share Posted January 30, 2008 I want to put an mp3 on a webpage so people can listen to it. I don't want it in the background playing automatically. I would think a play button/slider thing would work. What are my options? Right now I have a hyperlink pointing to the file. When you click on it, it will play, but I want something more professional. Quote Link to comment https://forums.phpfreaks.com/topic/88499-mp3-on-a-webpage/ Share on other sites More sharing options...
trq Posted January 30, 2008 Share Posted January 30, 2008 You'll probably be looking at flash, nothing to do with php which runs server side. Quote Link to comment https://forums.phpfreaks.com/topic/88499-mp3-on-a-webpage/#findComment-453028 Share on other sites More sharing options...
aniesh82 Posted January 30, 2008 Author Share Posted January 30, 2008 I want to avoid Flash. Because flash doesn't play in some browsers ( rare case). Some other method to do this ? Is some players (free or paid) are available in net? Quote Link to comment https://forums.phpfreaks.com/topic/88499-mp3-on-a-webpage/#findComment-453066 Share on other sites More sharing options...
valtido Posted January 30, 2008 Share Posted January 30, 2008 right there isnt anything else loool you could have links to direct ppl to download flash if they can't load the mp3 right. Otherwise i use <object> and <embed> tags and php with links like www.mysite.com/?play=3456 and then that 3456 number is the ID of the link (URL) on the database. and have something like this. <object src="$ID"> dont know if all this makes sense but you know it has alot of coding in it so you know.... PS hope it helps Quote Link to comment https://forums.phpfreaks.com/topic/88499-mp3-on-a-webpage/#findComment-453088 Share on other sites More sharing options...
Bauer418 Posted January 30, 2008 Share Posted January 30, 2008 Your options: Embed a flash player to play the music file (works in just about every browser nowadays) Embed a windows media player plugin on the page and play the MP3 file (not working on linux or mac) Direct the users to a link which they can load into their own media player Quote Link to comment https://forums.phpfreaks.com/topic/88499-mp3-on-a-webpage/#findComment-453092 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.