HTML - how to play mp3 with Firefox !?

For everything that's not in any way related to PureBasic. General chat etc...
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

HTML - how to play mp3 with Firefox !?

Post by Ralf »

hi!
is there any way to include and play a mp3 file as background of your webpage? i tried something with IE - it works!

But it does not work with latest version of FireFox ;/ Someone an idea, how to solve this problem? (I dont want use flash!)


Edit: Btw, when trying to play a mp3 with firefox, ff will install quicktime (i hate this!) - is there no way without installing quicktime?
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

Try to use wav instead, which work on all browsers. MP3 is just an IE implantation, not a part of the HTML standard.
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

Post by Ralf »

Bonne_den_kule wrote:Try to use wav instead, which work on all browsers. MP3 is just an IE implantation, not a part of the HTML standard.
ohhh... thanks for the info... i thought about using mp3, because it is small ;) anyway many thanks. i will try it... (have to check how to convert the mp3 to wav ;)
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Ralf wrote: (have to check how to convert the mp3 to wav ;)
Classic:

Open winamp, set the output device to NullSoft Disk Writer:P
Play the MP3 once, and voillá!

Don't forget to put the output device back to Direct Sound Output, or any file you play on winamp will be recorded to the HardDrive...

This also works for web stream contents.... :twisted:
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

Post by Ralf »

thanks for the tip Num3 - i found a MP3 to WAV converter ;)

i have tried to include MP3 and WAV files... seems both doesnt works in firefox without any plugin!? ;-/

someone an idea how to solve this problem for IE and FireFox? I tried it with

<EMBED SRC="sound.wav" HEIGHT="40" WIDTH="200">
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Hum...

I installed K-Lite codec pack which has a few plugins to work with netscape / Mozilla products, but i haven't tried any page with sound yet...
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

No idea ... but maybe the following link helps you :

http://www.broadbandreports.com/faq/12493
regards,
benny!
-
pe0ple ar3 str4nge!!!
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

Post by Ralf »

Num3 wrote:Hum...

I installed K-Lite codec pack which has a few plugins to work with netscape / Mozilla products, but i haven't tried any page with sound yet...
i use latest K-Lite CodePack too! (its a must for every system ;)

btw, i search for a way to play a digitalized sound (may it be mp3, wav... no midi) without any plugin if possible! Else i could just use flash because i really dislike quicktime and i think flash is more used as qt!?

i tried to play mp3 and wav in IE on winXP and even here it does not work, IE display a requester about security problems...
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

Ralf wrote:thanks for the tip Num3 - i found a MP3 to WAV converter ;)

i have tried to include MP3 and WAV files... seems both doesnt works in firefox without any plugin!? ;-/

someone an idea how to solve this problem for IE and FireFox? I tried it with

<EMBED SRC="sound.wav" HEIGHT="40" WIDTH="200">
You need to use the <bgsound> tag instead.

http://www.blooberry.com/indexdot/html/ ... gsound.htm

<Embeded> is only for netscape
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

Post by Ralf »

You need to use the <bgsound> tag instead.

http://www.blooberry.com/indexdot/html/ ... gsound.htm

<Embeded> is only for netscape[/quote]



ohhh ;) thanks... now it works with WAV in IE but still no chance to get it work with FireFox :twisted:
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Embed only for Netscape? Maybe, but I use the string below to play mp3, wav, mpeg, avi and asf
without any problems in IE.
The code below opens a generic mediaplayer in a browser, with some useful controls and a context
menu built into it. :wink:

Code: Select all

"<Embed Src="+C+Path+C+" Width='100%' Height='96%' playcount=1000></Embed>"
Here's a link on how to wrap the Embed tag to make it work cross browser. The Embed object can be
hidden if you just need the sound. http://www.oreillynet.com/cs/user/view/cs_msg/59756
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

Post by Ralf »

i have tried some ways but no way really works in firefox without a plugin ;/
so i will solve the problem with flash now.

is here any flashMX expert and can show me a editable file wiht following content:

Display only 2 Text on the screen and one button with a play or music icon. For example when a vistitor comes to the site he should get a blank site with a headline "text1" and another "text2" line under the first. on the site should be a "play" image (as button) to play a included mp3 file!

if the visitor listed the full mp3, a redirect to "http:/blabla" in the same window should happen! if the visitor dont press the "play" button the first 5 seconds, a auto redirect should happen.

hope you understand what i am looking for... many thanks in advance.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

i have tried some ways but no way really works in firefox without a plugin ;/
No, and if you wrap <embed> in an object tag, the way described above, the proper plugin will be installed I think.
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

Post by Ralf »

utopiomania wrote:
i have tried some ways but no way really works in firefox without a plugin ;/
No, and if you wrap <embed> in an object tag, the way described above, the proper plugin will be installed I think.
mhhh... the site should work without to install a plugin nor to have an installed plugin on the system like the dirty quicktime player. so i will move to use flash - even if you need this installed too. But i think flash is more used as quicktime on pc´s!

i only have to found out, how to do it in flash - i never worked with it before :/
Post Reply