Easy Tutorial
❮ Av Prop Preload Att Frameset Rows ❯

HTML Audio/Video DOM controller Attribute

HTML Audio/Video DOM Reference Manual

Example

Check if the video has a media controller:


Definition and Usage

The controller attribute 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 attribute will return it in the form of a MediaController object.


Browser Support

None of the major browsers support the controller attribute.


Syntax

Return Value

Type Description
MediaController Object Represents the media controller of the audio/video. Properties/methods of the MediaController object: buffered - Get the buffered range of the audio/video<br> seekable - Get the seekable range 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 if the audio/video is muted

❮ Av Prop Preload Att Frameset Rows ❯