HTML Audio/Video DOMcontrollerProperty
HTML Audio/Video DOM Reference Manual
Example
Detect whether this video has a media controller:
myVid=document.getElementById("video1");
alert("Controller: " + myVid.controller);
alert("Controller: " + myVid.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 in the form of a MediaController object.
Browser Support
![]()
![]()
![]()
![]()
![]()
None of the major browsers support the controller property.
Syntax
audio|video.controller
Return Value
| Type | Description |
|---|---|
| MediaController Object | Represents the media controller for audio/video. Properties/methods of the MediaController object:
|
HTML Audio/Video DOM Reference Manualother extensions