blog

Home / DeveloperSection / Blogs / HTML5 Audio and Video Player

HTML5 Audio and Video Player

Anonymous User3699 31-Jan-2015

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.

HTML5 Audio and Video Player

Code:
<audiocontrols>
    <sourcesrc="1.mp3"type="audio/mpeg">
    <sourcesrc="2.mp3"type="audio/mpeg">
    <sourcesrc="3.amr"type="audio/amr">
    <sourcesrc="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.

 

HTML5 Audio and Video Player

 
Code:
<divstyle="width:50%;margin:100pxauto;height:400px;">
    <videocontrolspreload="none"style="width:100%;max-width:100%;">
        <sourcesrc="~/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


Updated 31-Jan-2015
I am a content writter !

Leave Comment

Comments

Liked By