tags:

views:

190

answers:

4

I want to embed a wave file (or mp3) in html. There is no problem for windows platforms. User can install a windows media player plugin. But WMP does not support linux. Is there any way to do that besides using Flash?

+1  A: 

You can take a look to a Javascript implemtation (origanilly from Digital Medias).

Here is a demo

But depending on what you want to do, it's generally not a good idea to provide music on website...

Boris Guéry
I am working a web-based diagnose tool, which is used to playback wave files (generated by some special devices).
stanleyxu2005
A: 

w3schools will usually tell you all you need to know about html authoring

thomax
+1  A: 

What do you mean by "embed a wave file in html"? You want to play an external file of hold that file inline in the html?

I do belive that you want to play an external file, as holding that file inline would be an overkill.

So, to play an external file, why not use a flash player (http://developer.longtailvideo.com/trac) or the new HTML5 element (http://ajaxian.com/archives/its-friday-play-some-drums-html5-style) ? I do belive flash is more lightweight than WMP and is cross-platform.

WMP might not exist on linux, but there are packages available for Firefox on linux that installs avi and mp3 handlers (at least mplayer does this, don't know about other players)

Quamis
Thanks for showing this cool player. But this player seems not to support wave files. I am not sure, if I need a special license for converting and playing mp3 files for commercial propose.
stanleyxu2005
+1  A: 

Really nice and easy example published by Google : http://code.google.com/intl/fr/apis/wave/embed/guide.html

Snekemoi
sounds interesting
stanleyxu2005