HTML DOM Audio/Video Complete Reference
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. | |
Video Object | The Video object in HTML DOM represents an <video> element. | |
Video canPlayType() Method |
The Video canPlayType() method is used for checking if the browser can play the specified video type or not. |
|
Video load() Method |
The Video load() method is used for re-loading the video element. | |
Video play() Method |
The Video play() method is used to start playing the current video. | |
Video pause() Method |
The Video pause() method is used to pause the current video from playing. |
HTML Audio/Video Properties:
Audio/Video Properties |
Description |
Example |
---|---|---|
Audio audioTracks Property | The Audio audioTracks Property is used for returning an AudioTrackList object. | |
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. | |
Audio buffered Property | The Audio buffered property is used for returning a TimeRanges object. | |
Audio controls Property | The Audio controls property is used for setting or returning whether audio should display standard audio controls or not. | |
Audio currentSrc Property | The Audio currentSrc property is used for returning the URL of the current audio. | |
Audio currentTime Property | The Audio currentTime property is used for setting or returning the current position of the audio playback. | |
Audio defaultMuted Property | The Audio defaultMuted property is used for setting or returning whether the audio should be muted by default or not. | |
Audio defaultPlaybackRate Property | The Audio defaultPlaybackRate property is used for setting or returning the default playback speed of the audio. | |
Audio duration Property | The Audio duration property is used for returning the length of an audio. | |
Audio ended Property | The Audio ended property is used for returning whether the playback of the audio has ended or not. | |
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. | |
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. | |
Audio muted Property | The Audio muted property is used to set or return whether the audio output should be muted or not. | |
Audio networkState Property | The Audio networkState property is used to return the current network state of the audio. | |
Audio paused Property | The Audio paused property is used for returning whether the audio is paused or not. | |
Audio playbackRate Property | The Audio playbackRate property is used for setting or returning the current playback speed of the audio. | |
Audio played Property | The Audio played property is used for returning a TimeRanges object. | |
Audio preload Property | The Audio preload property is used for setting or returning the value of the preload attribute of audio. | |
Audio readyState Property | The Audio readyState property is used for returning the current ready state of the audio. | |
Audio seekable Property | The DOM Audio seekable property is used for returning a TimeRanges object. | |
Audio seeking Property | The DOM Audio seeking property is used for returning if the user is currently seeking in the audio. | |
Video volume Property | The Video volume property is used for setting or returning the audio volume of a video. | |
Video audioTracks Property | The Video audioTracks Property is used for returning an AudioTrackList object. | |
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. | |
Video buffered Property | The Video buffered property is used for returning a TimeRanges object. | |
Video controls Property | The Video controls property is used to set or return whether a video should display standard video controls or not. | |
Video currentSrc Property | The Video currentSrc property is used for returning the URL of the current video. | |
Video currentTime Property | The Video currentTime property is used to set or return the current position of the video playback. | |
Video defaultMuted Property | The Video defaultMuted property is used to set or return whether the video should be muted by default or not. | |
Video defaultPlaybackRate Property | The Video defaultPlaybackRate property is used for setting or returning the default playback speed of the video. | |
Video duration Property | The Video duration property is used for returning the length of a video. | |
Video ended Property | The Video ended property in HTML DOM is used to return whether the playback of the video has ended or not. | |
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. | |
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. | |
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. | |
Video networkState Property | The Video networkState property is used for returning the current network state of the video. | |
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. | |
Video playbackRate Property | The Video playbackRate property in HTML DOM is used to set or return the current playback speed of the video. | |
Video played Property | The Video played property is used for returning a TimeRanges object. | |
Video preload Property | The Video preload property is used for setting or returning the value of the preload attribute of a video. | |
Video readyState Property | The Video readyState property is used for returning the current ready state of the video. | |
Video seekable Property | The Video seekable property is used for returning a TimeRanges object. | |
Video Seeking Property | The Video seeking property is used for returning if the user is currently seeking in the video. | |
Video src Property | The Video src property is used for setting or returning the value of the src attribute of a video. | |
Video startDate Property | The Video startDate property is used for returning a Date object which represents the current timeline offset of the video. | |
Video textTracks Property | The Video textTracks property is used for returning a TextTrackList object. | |
Video videoTracks Property | The Video videoTracks property is used for returning a VideoTrackList object. |
Contact Us