views:

224

answers:

3

I was pretty surprised when i saw http://www.vorbis.com/music/Hydrate-Kenny_Beltrey.ogg link not give me a download option but had a player that was not flash playing the audio back. (FireFox)

Is there a way i can embed this onto a page?

+3  A: 

Use the HTML5 Audio tag.

P.S. Although you tagged as firefox, Chrome, Safari and Opera 10.5 also have support for audio

N 1.1
Note that out of all of them, Safari does not support Vorbis audio (because QuickTime doesn't, unless the user has installed XiphQT). An alternate `source` tag could provide a fallback, such as wav or mp3
Kelly Clowers
@Kelly: indeed. thanks.
N 1.1
+1  A: 

You can use HTML5 to embed this on a page, but it will not play back consistently across browsers.

The only way to get consistent audio/video playback across browsers is to use a plugin and Flash has the widest user penetration.

Sam
+1  A: 

You're looking for the HTML5 <audio> tag.
Note that it's not supported by IE.

SLaks
Google finds at least a couple of free java applets capable of playing ogg/vorbis, that's a possible IE-compatible fallback solution.
Erik Dahlström