Audio controller Property
Example
Find out if 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.
By default the <audio> 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 audio should display standard video controls.
Browser Support
The controller property is not supported in any major browser.
Syntax
audioObject.controller
Return Value
Type | Description |
---|---|
MediaController Object | Represents the media controller of the audio. MediaController Object properties/methods:
|
Audio Object