Video controller properties

Definition and usage

controller property returns the current media controller of the video.

By default, the <video> element does not have a media controller. If a media controller is specified, then controller The property will return it as a MediaController object.

Hint:Please use controls property Set or return whether the video should display the standard video controls.

Instance

Check if the video has a media controller:

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

Try it yourself

Syntax

videoObject.controller

Return value

Type Description
MediaController object

Represents the media controller for the video.

MediaController object properties/methods:

  • buffered - Get the buffered range of the video
  • seekable - Get the seekable range of the video
  • duration - Get the duration of the video
  • currentTime - Get or set the current playback position of the video
  • paused - Check if the video is paused
  • play() - Play the video
  • pause() - Pause the video
  • played - Check if the video has been played
  • defaultPlaybackRate - Get or set the default playback rate of the video
  • PlaybackRate - Get or set the current playback rate of the video
  • volume - Get or set the volume of the video
  • muted - Get or set whether the video is muted

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Not Supported Not Supported Not Supported Not Supported Not Supported