Audio controllerProperties
Examples
Detect whether the audio has a media controller:
var x = document.getElementById("myAudio").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.
Tip:UsecontrolsThe property sets or returns whether the audio displays controls (such as play/pause, etc.).
Browser Support
![]()
![]()
![]()
![]()
![]()
Currently, no mainstream browsers support the controller property.
Syntax
audioObject.controller
Return Value
| Value | Description |
|---|---|
| MediaController Object |
Represents the media controller of the audio/video. MediaController Object Properties/Methods:
|
Audio Object Other Extensions