Edit:
Oh, this is Android specific, not (just) a web site. I'd suggest you look both at these solutions, and one of the MediaPlayer
solutions other people mentioned. If you go with MediaPlayer
, I recommend you accept their answer :)
There are many examples of how to do this on w3schools:
http://www.w3schools.com/html/html_sounds.asp
You can:
- Embed a media player, such as the Yahoo web player
- Play audio in HTML via the
<audio>
element
- Use the
<embed>
element
- Use the
<object>
element
Here's the solution they describe as "best":
<audio controls="controls" height="50px" width="100px">
<source src="song.mp3" type="audio/mpeg" />
<source src="song.ogg" type="audio/ogg" />
<embed height="50px" width="100px" src="song.mp3" />
</audio>
Note that this is an HTML 5 element, so might not work on every single browser out there. I think it will probably work in any browser you should be developing rich multimedia experiences in, though.