Hi everyone in this blog I’m explaining about custom html 5 video player.
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.
The following are the 5 most popular media elements.
- Audio element is used for defining or creating a music element in your simple 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 audio streams formats.
<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">
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
<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">
in my next post i'll explain about Combining ASP.Net MVC With SQL Server Reporting Services