Latest web development tutorials

HTML DOM Audio controller properties

Audio Object Reference Audio Object

Examples

Detecting whether the audio media controller:

var x = document.getElementById("myAudio").controller;

try it"

Definition and Usage

controller property returns the current audio and video media controller.

By default, audio and video elements do not have the media control. If you specify a media controller, controller properties will MediaController and returns it.

Tip: Use the controls property sets or returns whether the audio display controls (such as play / pause, etc.).


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

There is no major browsers support controller properties.


grammar

audioObject .controller

return value

value description
MediaController objects

It indicates audio and video media controller.

MediaController object properties / methods:

  • buffered - get audio and video buffering range
  • seekable - or addressable range of audio and video
  • duration - a long time to get audio and video
  • Get or set the current playback position of audio and video - currentTime
  • paused - detection of audio and video has been paused
  • play () - play audio and video
  • pause () - pause audio and video
  • played - detecting whether the audio and video has been played
  • The default playback rate to get or set the audio and video - defaultPlaybackRate
  • playbackRate - get or set the current playback speed of audio and video
  • volume - Gets or sets the volume of the audio and video
  • muted - whether to get or set the video and audio is muted


Audio Object Reference Audio Object