001 HTML5 Video

Source: Internet
Author: User

HTML5 has improved the label of the video, this example applies the video tag <video> in the HTML5

Current HTML5 supports three formats of video, OGG, MP4, and WEBM in three different formats

The <video> properties are:

AutoPlay Video Play Now

Controls display the control to the user

Height Set video Player Heights

Loop starts playing again when the media file finishes playing

Preload video is loaded when the page loads and ready to play. If you use AutoPlay to ignore this property

src URL of the video to play

Width set the size of the player

This example has the following effects:

The source code is as follows:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title> Untitled Document </title>

<body>
<video src= ". /documents/unnamed Site 2/washes tutorial-js programming No. 0270: Instance 02-Basic dialog box. MP4 "height=" 720 "width=" 960 "controls=" Controls >
</video>
</body>

001 HTML5 Video

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.