Display Video Using HTML5: Part 1 - C# Corner
Có thể bạn quan tâm
Display Video Using HTML5: Part 1
- Shirsendu Nandi
- Oct 30, 2019
- 41.8k
- 0
- 0
-
- Other Artcile
Description
In this article, I will describe to you how to embed a video in your website using HTML 5 and display it.Content
Today, most videos are shown through a plugin (like flash), Silverlight, etc. However, not all browsers have the same plugins. Now HTML5 specifies a standard way to include video, with the video element.Video Formats
Currently, there are 3 supported video formats for the video element in HTML 5: Below are the supported browser list.Format | IE | Firefox | Opera | Chrome | Safari |
Ogg | No | 3.5+ | 10.5+ | 5.0+ | No |
MPEG 4 | 9.0+ | No | No | 5.0+ | 3.0+ |
WebM | No | 4.0+ | 10.6+ | 6.0+ | No |
- Ogg = Ogg files with Theora video codec and Vorbis audio codec
- MPEG4 = MPEG 4 files with H.264 video codec and AAC audio codec
- WebM = WebM files with VP8 video codec and Vorbis audio codec
- <!DOCTYPE html>
- <html>
- <head>
- <style>
- body {
- background: black;
- color:#CCCCCC;
- }
- #c2 {
- background-image: url(foo.png);
- background-repeat: no-repeat;
- }
- div {
- float: left;
- border :1px solid #444444;
- padding:10px;
- margin: 10px;
- background:#3B3B3B;
- }
- </style>
- </head>
- <p>Godda Video</p>
- <br>
- <bodyonload="processor.doLoad()">
- <div>
- <videoid="video"src="You're my Love.ogg"controls="true"width="300"height="150"loop="true"/>
- </div>
- </body>
- </body>
- </html>
Conclusion
So in this article, we have seen the basic funda of displaying video using HTML 5. In my next article, I will show you other HTML 5 controls and more video operation in HTML 5 using .NET.- .net
- CSS
- Display video using HTML5
- HTML 5
- HTML 5 tutorials
Frontend Developer Interview Questions and Answers
Download Now! Similar ArticlesTừ khóa » Html5 Video Segment
-
The Video Embed Element - HTML: HyperText Markup Language
-
In HTML5 Video , How To Play A Small Clip From A Long Video?
-
HTML5 Video Example. Buttons Control Start And Ending Timed ...
-
HTML Video - W3Schools
-
How To Optimize For HTML5 Video Streaming & HTML Video Tag
-
Demystifying HTML5 Video Player - Medium
-
HTML5 Video Play Sequence Of Video Segments - Vanilla JS
-
HTML5 Video Tracking Recipe For Google Tag Manager
-
HTML5 Video: Fragments, Captions, And Dynamic Thumbnails
-
HTML5 Video - Wikipedia
-
Does HTML5 + JS Play Segmented Video Continuously?
-
Comedy Central Html5 Video Player / Segment Extractor - Gist GitHub
-
Top 13 HTML5 Video Players For The Web Reviewed [2021]
-
Html – In HTML5 Video , How To Play A Small Clip From A Long Video