Audio controller properties
Definition and usage
controller
The property returns the current media control of the audio.
By default, the <audio> element does not have a media control. If a media control is specified, the controller property will return it as a MediaController object.
Tip:Please use controls property Set or return whether the audio should display the standard video control.
Instance
Find out if the audio has a media control:
var x = document.getElementById("myAudio").controller;
Syntax
audioObject.controller
Return value
Type | Description |
---|---|
MediaController object |
Represents the media control for the audio. MediaController object properties/methods:
|
Supporto browser
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Non supportato | Non supportato | Non supportato | Non supportato | Non supportato |