HTML Audio / Video DOM controls property
HTML Audio / Video DOM Reference
Examples
Start the video controls:
myVid=document.getElementById("video1");
myVid.controls=true;
myVid.controls=true;
try it"
Definition and Usage
controls property sets or returns the browser should display a standard audio / video controls.
Standard audio / video controls include:
- Broadcast
- time out
- progress bar
- volume
- Full-screen toggle (for video)
- Subtitles (when available)
- Track (when available)
Browser Support
All major browsers support controls property.
Note: 8 and earlier versions of Internet Explorer does not support this property.
grammar
Setting controls properties:
audio|video .controls=true|false
Returns controls properties:
audio|video .controls
Property Value
值 | 描述 |
---|---|
true | 指示显示控件。 |
false | 默认。指示不显示控件。 |
technical details
返回值: | 布尔值,true|false |
---|---|
默认值: | false |
HTML Audio / Video DOM Reference