HTML Audio/Video DOM controller Property
HTML Audio/Video DOM Reference
Example
Detect whether the video has a media controller:
myVid=document.getElementById("video1");
alert("Controller: " + myVid.controller);
Try it »
Definition and Usage
The controller property returns the current media controller of the audio/video.
By default, the audio/video element has no media controller. If a media controller is specified, the controller property returns it as a MediaController object.
Browser support





No major browser supports the controller property.
Syntax
audio|video
.controller
Return Value
| Type | Description |
|---|---|
| MediaController Object | Represents the media controller of the audio/video.
Properties/methods of the MediaController object: |
HTML Audio/Video DOM Reference