Easy Tutorial
❮ Prop Loc Hash Prop Video Poster ❯

Video controller Property

Video Object

Example

Check if the video has a media controller:

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

Definition and Usage

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

By default, audio/video elements do not have a media controller. If a media controller is specified, the controller property will return it as a MediaController.

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


Browser Support

None of the major browsers support the controller property.


Syntax

Return Value

Value Description
MediaController Object Represents the media controller of the audio/video. MediaController object properties/methods: buffered - Get the buffered ranges of the audio/video<br> seekable - Get the seekable ranges of the audio/video<br> duration - Get the duration of the audio/video<br> currentTime - Get or set the current playback position of the audio/video<br> paused - Check if the audio/video is paused<br> play() - Play the audio/video<br> pause() - Pause the audio/video<br> played - Check if the audio/video has been played<br> defaultPlaybackRate - Get or set the default playback rate of the audio/video<br> playbackRate - Get or set the current playback rate of the audio/video<br> volume - Get or set the volume of the audio/video<br> muted - Get or set whether the audio/video is muted

❮ Prop Loc Hash Prop Video Poster ❯