Home > DeveloperSection > Blogs > HTML5 Audio and Video Player

HTML5 Audio and Video Player


ASP.Net HTML5  HTML5 Video  HTML5 Audio 
Ratings:
0 Comment(s)
 1077  View(s)
Rate this:

HTML5 Audio & Video Player

Hi everyone in this blog I’m explaining about custom html 5 video player.

Description:

There were nearly negligible media elements in previous versions of HTML, yet those were still very helpful and handy. With the rise of HTML5, several media elements have also come into the light. 

These media elements will change the entire scenario of designing and development using HTML. This article will provide an introduction and a little description of these elements.

Media Elements:

The following are the 5 most popular media elements.

Audio:

  1. Audio element is used for defining or creating a music element in your simple HTML page.
  2. It supports all the browsers like Internet Explorer 9.0 and above, Chrome, Opera, Firefox and Safari.
  3. This tag defines music or any other audio streams formats.

Code:

<audio controls>

    <source src="1.mp3" type="audio/mpeg">

    <source src="2.mp3" type="audio/mpeg">

    <source src="3.amr" type="audio/amr">

    <source src="4.amr" type="audio/amr">

</audio>

 

Outcome

Video:

The Video element creates a video element in your HTML page. It supports all the browsers like Internet Explorer 9.0 and above, Chrome, Opera, Firefox and Safari. This tag defines music or any other video streams formats.

 

 

Code:

<div style="width:50%;margin:100px auto;height:400px;">

    <video controls preload="none" style="width:100%;max-width:100%;">

        <source src="~/Content/Video/1.mp4" type="video/mp4">

    </video>

</div>

 

 

 in my next post i'll explain about Combining ASP.Net MVC With SQL Server Reporting Services


Don't want to miss updates? Please click the below button!

Follow MindStick