HTML5 step by step-multimedia objects (3)

Source: Internet
Author: User

<Video width = "300" height = "240" controls = "controls">
<Source src = "aa.mp4" type = "audio/mp4"/>
Your browser does not support playback. <! -- Specify the text displayed when the browser does not support it -->
</Video>


Video attributes:
Audio muted: whether to play the sound

Autoplay: Indicates whether autoplay is automatically played.

Src:
Url specifies the Video Source Path

Poster:
Images displayed during video loading by URLs

Preload: none/metadata/auto whether to read video content in advance, or read-only file information, such as file name length, or automatically load

Controls: boolean whether to display the Controller

Loop: boolean indicates whether loop playback is enabled.

Width:
Pixels uses css to define the width

Height:
Pixels uses css to define the height

Type:
Mime-typetype = "video/whem; codecs =" vorbis, vp8 ". If this parameter is not specified, the player automatically selects the parameter based on the video attribute.


Media attribute: This attribute uses css to format the playback output style. Example: media = "screen and (min = width: 800px ;)"


Author: shiyuan17

Related Article

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.