Video controller Property

❮ Video Object

Example

Find out if the video has a media controller:

var x = document.getElementById("myVideo").controller;
Try it Yourself »

Description

The 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, the controller property will return it as a MediaController object.

Tip: Use the controls property to set or return whether a video should display standard video controls.


Browser Support

Property
controller Not supported Not supported Not supported Not supported Not supported

Syntax

videoObject.controller

Return Value

Type Description
MediaController Object Represents the media controller of the video.

MediaController Object properties/methods:

  • buffered - get the buffered ranges of the video
  • seekable - get the seekable ranges 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 if the video is muted

❮ Video Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.