HTML Audio/Video DOM controller Property

❮ HTML Audio/Video DOM Reference

Example

var vid = document.getElementById("myVideo");

function myFunction() {
  alert("Controller is: " + vid.controller);
}

Meaning

The controller property returns the MediaController object representing the current media controller of the audio/video.


Standard Syntax

audio|video.controller



Browser Support




Status







Return Value

Type Description
MediaController Object Returns the media controller of the audio/video.

MediaController Object properties/methods:

  • buffered - get the buffered ranges of the audio/video.
  • currentTime - get or set the current playback position of the audio/video.
  • defaultPlaybackRate - get or set the default playback rate of the audio/video.
  • duration - get the duration of the audio/video.
  • muted - get or set if the audio/video is muted.
  • paused - check if the audio/video is paused.
  • play() - play the audio/video.
  • pause() - pause the audio/video.
  • played - check if the audio/video has been played.
  • playbackRate - get or set the current playback rate of the audio/video.
  • seekable - get the seekable ranges of the audio/video.
  • volume - get or set the volume of the audio/video.
❮ HTML Audio/Video DOM Reference