X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Audio controller Property

Audio Object Reference Audio Object

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

Internet Explorer Firefox Opera Google Chrome Safari

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:

  • buffered - get the buffered ranges of the audio
  • seekable - get the seekable ranges of the audio
  • duration - get the duration of the audio
  • currentTime - get or set the current playback position of the audio
  • paused - check if the audiois paused
  • play() - play the audio
  • pause() - pause the audio
  • played - check if the audiohas been played
  • defaultPlaybackRate - get or set the default playback rate of the audio
  • playbackRate - get or set the current playback rate of the audio
  • volume - get or set the volume of the audio
  • muted - get or set if the audio is muted


Audio Object Reference Audio Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook