I am using the JetBrains WebStorm 2.0.1 development tool .: Http://urlxf.qq.com /? NmiURzu play video: properties of the http://www.w3school.com.cn/html5/html_5_video.asp <video> label
| Attribute |
Value |
Description |
| Autoplay |
Autoplay |
If this attribute appears, the video will be played immediately after it is ready. |
| Controls |
Controls |
If this attribute is displayed, the control, such as the play button, is displayed to the user. |
| Height |
Pixels |
Set the height of the video player. |
| Loop |
Loop |
If this attribute is displayed, the media file starts playing again after being played. |
| Preload |
Preload |
If this attribute is displayed, the video is loaded when the page is loaded and ready for playing. If "autoplay" is used, this attribute is ignored. |
| Src |
Url |
The URL of the video to be played. |
| Width |
Pixels |
Set the width of the video player. |
HTML5 <video>-methods, attributes, and events
The video methods, attributes, and events supported by most browsers are listed below:
| Method |
Attribute |
Event |
| Play () |
CurrentSrc |
Play |
| Pause () |
CurrentTime |
Pause |
| Load () |
VideoWidth |
SS |
| CanPlayType |
VideoHeight |
Error |
| |
Duration |
Timeupdate |
| |
Ended |
Ended |
| |
Error |
Abort |
| |
Paused |
Empty |
| |
Muted |
Emptied |
| |
Seeking |
Waiting |
| |
Volume |
Loadedmetadata |
| |
Height |
|
| |
Width |
|
<! DOCTYPE html>