Open In App
Related Articles

HTML DOM Audio/Video Complete Reference

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

HTML DOM is an object model for programming interface. It is used to modify the structure, style and content of HTML document. The DOM Audio/Video contain the methods and properties related to audio and video.

The complete list of HTML DOM Audio/Video methods and properties are given below:

HTML Audio/Video Methods:

Audio/Video Methods

Description

Example

Audio Object The Audio object is used for representing an HTML <audio> element.
Try
Video Object The Video object in HTML DOM represents an <video> element.
Try
Video canPlayType() Method The Video canPlayType() method is used for checking if the browser can play the specified video type or not.
Try
Video load() Method The Video load() method is used for re-loading the video element.
Try
Video play() Method The Video play() method is used to start playing the current video.
Try
Video pause() Method The Video pause() method is used to pause the current video from playing.
Try

HTML Audio/Video Properties:

Audio/Video Properties

Description

Example

Audio audioTracks Property The Audio audioTracks Property is used for returning an AudioTrackList object.
Try
Audio autoplay Property The Audio autoplay property is used for setting or returning whether audio should start playing as soon as it is loaded or not.
Try
Audio buffered Property The Audio buffered property is used for returning a TimeRanges object.
Try
Audio controls Property The Audio controls property is used for setting or returning whether audio should display standard audio controls or not.
Try
Audio currentSrc Property The Audio currentSrc property is used for returning the URL of the current audio.
Try
Audio currentTime Property The Audio currentTime property is used for setting or returning the current position of the audio playback.
Try
Audio defaultMuted Property The Audio defaultMuted property is used for setting or returning whether the audio should be muted by default or not.
Try
Audio defaultPlaybackRate Property The Audio defaultPlaybackRate property is used for setting or returning the default playback speed of the audio.
Try
Audio duration Property The Audio duration property is used for returning the length of an audio.
Try
Audio ended Property The Audio ended property is used for returning whether the playback of the audio has ended or not.
Try
Audio loop Property The Audio loop property is used for setting or returning whether an audio should start playing over again when it is finished or not.
Try
Audio mediaGroup Property The Audio mediaGroup property is used for setting or returning the name of the media group the audio is a part of.
Try
Audio muted Property The Audio muted property is used to set or return whether the audio output should be muted or not.
Try
Audio networkState Property The Audio networkState property is used to return the current network state of the audio.
Try
Audio paused Property The Audio paused property is used for returning whether the audio is paused or not.
Try
Audio playbackRate Property The Audio playbackRate property is used for setting or returning the current playback speed of the audio.
Try
Audio played Property The Audio played property is used for returning a TimeRanges object.
Try
Audio preload Property The Audio preload property is used for setting or returning the value of the preload attribute of audio.
Try
Audio readyState Property The Audio readyState property is used for returning the current ready state of the audio.
Try
Audio seekable Property The DOM Audio seekable property is used for returning a TimeRanges object.
Try
Audio seeking Property The DOM Audio seeking property is used for returning if the user is currently seeking in the audio.
Try
Video volume Property The Video volume property is used for setting or returning the audio volume of a video.
Try
Video audioTracks Property The Video audioTracks Property is used for returning an AudioTrackList object.
Try
Video autoplay Property The Video autoplay property is used for setting or returning whether a video should start playing as soon as it is loaded or not.
Try
Video buffered Property The Video buffered property is used for returning a TimeRanges object.
Try
Video controls Property The Video controls property is used to set or return whether a video should display standard video controls or not.
Try
Video currentSrc Property The Video currentSrc property is used for returning the URL of the current video.
Try
Video currentTime Property The Video currentTime property is used to set or return the current position of the video playback.
Try
Video defaultMuted Property The Video defaultMuted property is used to set or return whether the video should be muted by default or not.
Try
Video defaultPlaybackRate Property The Video defaultPlaybackRate property is used for setting or returning the default playback speed of the video.
Try
Video duration Property The Video duration property is used for returning the length of a video.
Try
Video ended Property The Video ended property in HTML DOM is used to return whether the playback of the video has ended or not.
Try
Video loop Property The Video loop property is used for setting or returning whether a video should start playing over again when it is finished or not.
Try
Video mediaGroup Property The Video mediaGroup property is used for setting or returning the name of the media group the video is a part of.
Try
Video muted Property The Video muted property is used for setting or returning whether the audio output of the video should be muted or not.
Try
Video networkState Property The Video networkState property is used for returning the current network state of the video.
Try
Video paused Property The Video paused property in HTML DOM is used to return whether the video is paused or not. It is the read-only property.
Try
Video playbackRate Property The Video playbackRate property in HTML DOM is used to set or return the current playback speed of the video.
Try
Video played Property The Video played property is used for returning a TimeRanges object.
Try
Video preload Property The Video preload property is used for setting or returning the value of the preload attribute of a video.
Try
Video readyState Property The Video readyState property is used for returning the current ready state of the video.
Try
Video seekable Property The Video seekable property is used for returning a TimeRanges object.
Try
Video Seeking Property The Video seeking property is used for returning if the user is currently seeking in the video.
Try
Video src Property The Video src property is used for setting or returning the value of the src attribute of a video.
Try
Video startDate Property The Video startDate property is used for returning a Date object which represents the current timeline offset of the video.
Try
Video textTracks Property The Video textTracks property is used for returning a TextTrackList object.
Try
Video videoTracks Property The Video videoTracks property is used for returning a VideoTrackList object.
Try
   

Last Updated : 21 Nov, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads