Video controllerProperty
Examples
Detect whether the video has a media controller:
var x = document.getElementById("myVideo").controller;
Try it Yourself »
Definition and Usage
The controller property returns the current media controller of the audio/video.
By default, audio/video elements do not have a media controller. If a media controller is specified, the controller property returns it as a MediaController.
Tip:Use thecontrolsproperty to set or return whether the video displays standard video controls.
Browser Support
![]()
![]()
![]()
![]()
![]()
The controller property is not supported by any mainstream browsers.
Syntax
videoObject.controller
Return Value
| Value | Description |
|---|---|
| MediaController object |
Represents the media controller of the audio/video. MediaController object properties/methods:
|
Video Object Other extensions