HTML Audio/Video DOM controller Property
❮ HTML Audio/Video DOM Reference
Example
Check if the video has a media controller:
    var vid = document.getElementById("myVideo");
alert("Controller: " + vid.controller);
Try it Yourself »
Definition and Usage
The controller property returns the current media controller of the audio/video.
By default the audio/video element does not have a media controller. If a media controller is specified, the controller property will return it as a MediaController object.
Tip: Use the controls property to set or return whether a video should display standard video controls.
Browser Support
| Property | |||||
|---|---|---|---|---|---|
| controller | Not supported | Not supported | Not supported | Not supported | Not supported | 
Syntax
 
  audio|video.controller
Return Value
| Type | Description | 
|---|---|
| MediaController Object | Represents the media controller of the audio/video. MediaController Object properties/methods: 
  | 
    
❮ HTML Audio/Video DOM Reference

