HTML 5 supports a new Audio tag, which allows you to play music. Here’s a sample HTML Audio Tag:

<audio controls="controls">
  <source src="song.ogg" type="audio/ogg" />
  <source src="song.mp3" type="audio/mp3" />
  Your browser does not support the audio tag.

Now you would think that it would be relatively simple to play music on the latest HTML 5 supported browsers, however its not as easy as it sounds…

Amar finds out more details on Learnings from .Net.

Related Links



0 thoughts on “HTML 5: Playing MP3 using Audio Tag

Share your thoughts

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s