HTML5 audio player tutorial

HTML5 audio player tutorial

Now, HTML5 supports video and audio media streams. We don’t need to embed flash or silverLight player. Html5 compatible browsers can stream those contents directly inside the browser.

In above video you can see how to do that.

Source code

<!doctype html>
<html>
<title>
Welcome to Audio demo
</title>
<body>

<audio controls="controls" autoplay >
<source src="mysong.mp3" type="audio/mpeg">
Your broser is not supporting Html5 contents.
</audio>

</body>
</html>

Tags:

HTML5 Video Player TutorialHTML5 TutorialBasic HTML5 TagsHTML5 With DataBaseHtml5 Doctype HeaderHTML5 Slider control and JavaScriptJquery CallBack TutorialASP.net HTML5 Generate Article TagHTML5 Canvas AnimationJquery Ajax TutorialYouTube Transcript File

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.