trace
|
|
« on: November 04, 2006, 11:05:47 am » |
|
I'm wanting to record a short 30 sec presentation and have it played on an mp3 player built into my website.
You know. the visitor clicks play and then u hear the short mp3 file.
How do I do this? Would I use a flash player or something? Any links? Its murder trying to find this on the search engines as its all music download sites!
|
|
|
|
|
Defcon 5
|
|
« Reply #1 on: November 04, 2006, 11:12:59 am » |
|
<embed src="song.mp3" autostart="false"></embed>
|
|
|
|
neutron2k
|
|
« Reply #2 on: November 05, 2006, 03:58:55 am » |
|
no that on won't work. You need code for a specific player class, such as windows media player or real player etc. <OBJECT classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' type='application/x-oleobject' width="320" height="255" standby='Loading Microsoft Windows Media Player components...' id='mediaPlayer'> <param name='fileName' value="http://mysite.com/sound.mp3"> <param name='animationatStart' value='true'> <param name='transparentatStart' value='true'> <param name='autoStart' value="true"> <param name='showControls' value="true"> <param name='loop' value="true"> <EMBED src="http://mysite.com/sound.mp3" width="320" height="255" autostart="true" loop="true" type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' id='mediaPlayer' displaysize='4' autosize='-1' bgcolor='darkblue' showcontrols="true" showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' designtimesp='5311'> </EMBED> </OBJECT>
try the code above. Thats what I use on my sites for mp3s and video content. i can explain more over at n2kdesign if your interested in why you have both object and embed tags.
|
|
|
|
trace
|
|
« Reply #3 on: November 05, 2006, 07:00:10 am » |
|
thanks for the info!
Will that show up as a small "mp3 player" embedded into the site with play, stop buttons?
I think the cod eby antexter would just play the sound in the background withotu any real control??? Thanks for the info though, antexter!
|
|
|
|
neutron2k
|
|
« Reply #4 on: November 06, 2006, 05:45:37 am » |
|
the method sharky pointed out is not commonly supported. It only works on certain browsers and certain system configurations. Its also depends on the configuration of the mime types on the web site. The code I provided has the option already enabled for controls. You will see a windows media player window appear (make sure you change the size dimensions of it!
|
|
|
|
Defcon 5
|
|
« Reply #5 on: November 06, 2006, 07:10:08 am » |
|
Yeah my one i think you need real player installed or something stupid like that.
|
|
|
|
neutron2k
|
|
« Reply #6 on: November 06, 2006, 08:26:31 am » |
|
It would use the default player on your system, providing the client had one installed and the Mime typers were configured. The code you posted you just copied from another web page dude I found that web page lol.
|
|
|
|
Defcon 5
|
|
« Reply #7 on: November 06, 2006, 08:53:09 am » |
|
i did copy it but i doubt you would of known where i got it from, the website it fucked from the seo side of it and the information for it seriouslt is crap.
|
|
|
|
neutron2k
|
|
« Reply #8 on: November 06, 2006, 10:32:57 am » |
|
:O its not from your web site is it :O
hehe just kidding :p
|
|
|
|
Defcon 5
|
|
« Reply #9 on: November 06, 2006, 03:31:35 pm » |
|
LOL, my website's are brilliant at seo well maybe just one . So did you copy your code?
|
|
|
|
neutron2k
|
|
« Reply #10 on: November 06, 2006, 04:38:08 pm » |
|
yup. from a site a i built for someone that plays videos that I wrote a while ago lol. What site is well SEOed of yours then dude?
|
|
|
|
|
trace
|
|
« Reply #12 on: November 07, 2006, 08:45:22 am » |
|
that code didn't work n2k!
I think its coz it had a screen?
Anyway I've got a free flash mp3 player installed now.
|
|
|
|
neutron2k
|
|
« Reply #13 on: November 07, 2006, 03:55:20 pm » |
|
that code requires windows media player installed. I ran it no problem.
|
|
|
|
Darksat
|
|
« Reply #14 on: November 08, 2006, 07:43:05 am » |
|
Flash MP3 players are better. more widely supported and people cant steal your MP3s then.
|
|
|
|
|
|