Darksat IT Security Forums
March 03, 2024, 05:11:19 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Darksat IT Security Forum
From Firewall Support, AntiVirus Questions, Spyware problems, Linux and Windows Security, Black Hat SEO right down to Website Design and Multimedia
 
  Home Help Search Gallery Links Staff List Login Register  

Playing mp3s on your website?

Pages: [1] 2 3 4 ... 6
  Print  
Author Topic: Playing mp3s on your website?  (Read 4160 times)
trace
Master
*****
Posts: 409



View Profile WWW
« 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!
Report Spam   Logged

Share on Facebook Share on Twitter

Defcon 5
Master
*****
Posts: 2410



View Profile WWW
« Reply #1 on: November 04, 2006, 11:12:59 am »

Code:
<embed src="song.mp3" autostart="false"></embed>
Report Spam   Logged
neutron2k
Elite-Member
Master
*****
Posts: 469



View Profile WWW
« 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.

Code:
<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.
Report Spam   Logged
trace
Master
*****
Posts: 409



View Profile WWW
« 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!
Report Spam   Logged
neutron2k
Elite-Member
Master
*****
Posts: 469



View Profile WWW
« 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 Smiley (make sure you change the size dimensions of it!
Report Spam   Logged
Defcon 5
Master
*****
Posts: 2410



View Profile WWW
« 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.
Report Spam   Logged
neutron2k
Elite-Member
Master
*****
Posts: 469



View Profile WWW
« 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 Smiley I found that web page lol.

Report Spam   Logged
Defcon 5
Master
*****
Posts: 2410



View Profile WWW
« Reply #7 on: November 06, 2006, 08:53:09 am »

Shocked 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.
Report Spam   Logged
neutron2k
Elite-Member
Master
*****
Posts: 469



View Profile WWW
« Reply #8 on: November 06, 2006, 10:32:57 am »

:O its not from your web site is it :O

hehe just kidding :p
Report Spam   Logged
Defcon 5
Master
*****
Posts: 2410



View Profile WWW
« Reply #9 on: November 06, 2006, 03:31:35 pm »

LOL, my website's are brilliant at seo Tongue well maybe just one Tongue.

So did you copy your code?
Report Spam   Logged
neutron2k
Elite-Member
Master
*****
Posts: 469



View Profile WWW
« 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?
Report Spam   Logged
Defcon 5
Master
*****
Posts: 2410



View Profile WWW
« Reply #11 on: November 07, 2006, 01:57:14 am »

Typer Tappers Tongue i have a google sitemap and everything Shocked
Report Spam   Logged
trace
Master
*****
Posts: 409



View Profile WWW
« 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.
Report Spam   Logged
neutron2k
Elite-Member
Master
*****
Posts: 469



View Profile WWW
« Reply #13 on: November 07, 2006, 03:55:20 pm »

that code requires windows media player installed. I ran it no problem.
Report Spam   Logged
Darksat
Administrator
Master
*******
Posts: 3303



View Profile WWW
« 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.
Report Spam   Logged

Pages: [1] 2 3 4 ... 6
  Print  
 
Jump to:  

Powered by EzPortal
eXTReMe Tracker
Security Forum
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy
Page created in 0.029 seconds with 15 queries.