It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

DIY mp3 player?

DIY mp3 player?

Postby m.t.pilot on Sat Nov 24, 2007 5:35 pm

Hi folks,

New here. I found this website while looking for information on how to create a mp3 player/streamer.

I want to have music played on my own website, but preferably without having to use the option to have the song(s) played in the mp3 player on the comp of the person browsing my homepage.

I have created a design with 4 'menu'-buttons: back/stop/play/next.

Is it possible (at all) to NOT make use of flashplayers or the players that normally pop up on people's PCs?
Is it possible to 'create' an mp3 player within the HTML code of your website?

All examples I came across are using either flash players or make use of popping up your preferred player on your own computer.

If it is not possible to create/write your own player within the code of the website, would it then be possible to customized the embedded mp3 player (flash or whatever) in such a way that MY 4 'menu'buttons controle the (hidden) menubuttons of the flashplayer?

Or, would it be possible to do something ' creative' with background-music code? (I work in php/css/xHTML-transitional)

regards,


M.T.Pilot
m.t.pilot
 
Posts: 5
Joined: Sat Nov 24, 2007 5:21 pm

Postby m.t.pilot on Tue Nov 27, 2007 7:37 pm

anyone?

you know, maybe just your thoughts on this..?
m.t.pilot
 
Posts: 5
Joined: Sat Nov 24, 2007 5:21 pm

Postby flabbyrabbit on Wed Nov 28, 2007 5:24 pm

Ok well this was somthing i just threw together so only has a play and stop button and is not neatly coded but it covers the basics of what you want, check it out here:http://www.flabbyrabbit.com/music.php.

Code: Select all
<script type="text/javascript">
function changeMusic(song){
document.getElementById('embed').innerHTML = '<embed src="http://www.flashkit.com/downloads/loops/mp3/3155/Brackish.mp3" loop=true hidden="true"></embed>';
if (song=="stop") {
   document.getElementById('embed').innerHTML = '';
}
}
</script>
<div id='embed'> </div>
<input type='button' name="button" onclick='changeMusic()' value='>'/>
<input type='button' onclick='changeMusic("stop")' value='[]'/>

Hope this helps,
Flabby Rabbit
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby m.t.pilot on Fri Nov 30, 2007 2:49 am

cheers! :D

so it is possible! Although somehow your link and buttons do not work for me (that could be due to some settings on my computer, actually..), I can see from the script the possibilities.

Great, I am going to implement it in the website I'm designing and experiment a bit with it.

thanks again, appreciated.


M.T.Pilot
m.t.pilot
 
Posts: 5
Joined: Sat Nov 24, 2007 5:21 pm


Who is online

Users browsing this forum: No registered users and 7 guests