Web Hosting Talk







View Full Version : Embedding a mp3 into a page


stjoenetworks
09-06-2006, 12:01 AM
I am trying to embed a mp3 into a website so that when a customer visits the site they can click on the embedded player and the song plays. NO POPUP PLAYERS!

I accomplished this on this page:

http://christmasinheaven.net/resources.html

However, when visited with IE this error message greets the user:

Click to run an Activex control on this web page

This message does not appear to all but it does appear to the site owner most importantly and she wants it gone. How?

I have searched and all I can find is that it is on the user's computer....is there another way to do this?

Here is the code I am currently using:


<object width="300" height="42">
<param name="src" value="audio.mp3">
<param name="autoplay" value="true">
<param name="controller" value="true">
<param name="bgcolor" value="#FFFFFF">
<embed src="audio.mp3"
autostart="false" loop="false"
width="300" height="42" controller="true"
bgcolor="#FFFFFF"></embed></object>


Any help or suggestions would be appreciated.

Eric

Googled
09-06-2006, 01:35 AM
Hi,

just tried your webpage using both FF and IE, they both works the same (music plays without any glitch).

Regards,

G

stjoenetworks
09-06-2006, 12:07 PM
Hi,

just tried your webpage using both FF and IE, they both works the same (music plays without any glitch).

Regards,

G

Yes as I posted the error is only in IE and it does not happen to everyone.

Is there a better way to do this so that we don't have the ActiveX error shown to some?

Thanks,

Eric

Jatinder
09-06-2006, 09:49 PM
Take a look at http://musicplayer.sourceforge.net/

Its a Flash based mp3 player which can be embeded in web pages. Since its developed in Flash, it is compatible with any browser whcih supports Flash.

You can find more mp3 web players at http://www.flashkit.com/movies/Sound/Players/

neoific
09-06-2006, 09:57 PM
The improved acitve x control comes with SP2, thats when Internet Explorer started freaking out.

No matter what, if your going to embed an mp3 object your going to get active x junk (that is, if your running SP2).

Flash is your best bet, you can even make your own flash file that is a transparent 1 by 1px box to embed the music.

funkytaco
09-07-2006, 11:08 AM
ActiveX is one of the dumbest things Microsoft did with IE. I'd say go the flash player route as some people disable ActiveX for security reasons. It's reliable and can be more elegant.

theprofsite
09-07-2006, 12:29 PM
hi
it's working

embed src="video/0f9b3c5985fea3a000267dcd9c40d764.avi" width="300" height="300" hspace="0" vspace="0" loop="true" autoplay="true"></embed>

if any problem pm me.

Xeentech
09-07-2006, 04:45 PM
I agree with the flash sugestions, any one that doesn't have flash installed clearly doesn't WANT an mp3 playing on web pages any way.. so thats perfect!

I used Javascript Sound Kit: http://jssoundkit.sourceforge.net/

You can control it via javascript (skiptrack, pause, volume, new pls, etc) but if its not needed just any flash player would do best IMO.

Don't embed mp3s that people can't turn off either IMO, that will just make people hit that red X to stop the music if there isn't a clearer easy way to shut-it-the-hell-up.

stjoenetworks
09-07-2006, 05:04 PM
Thank you to all who responded. We have now fixed this thanks to Jatinder suggested website.

I appreciate the help.

Eric