HTML Audio/Video Properties


Property Description
audioTracks You get an AudioTrackList object that shows the audio tracks you can use.
autoplay Sets or returns whether the audio or video start playing right away when it's loaded
buffered You get a TimeRanges object that shows the parts of the audio or video that is ready to play.
controller Gets the MediaController object that shows the current audio/video controller.
controls Does the audio/video need to show controls (such as play/pause buttons)?
crossOrigin Change or get the CORS settings of the audio/video.
currentSrc Gives the web address of the currently playing audio or video.
currentTime Shows where the audio or video is currently playing (in seconds).
defaultMuted Does the audio/video need to be silent when starting or not?
defaultPlaybackRate Change or get the usual speed at which audio/video plays.
duration Tells how long the current audio or video is (in seconds).
ended Tells you if the audio/video has finished playing or not.
error Provides a MediaError object that shows the problem with the audio/video.
loop Sets or returns whether the audio/video need to start again when it's done?
mediaGroup Indicates which group an audio or video belongs to (used for connecting several audio/video items together).
muted Indicates if the sound or video is turned off or on.
networkState Shows if the audio/video is currently connected or not.
paused Determines if the sound/video is stopped or currently playing.
playbackRate Change or get the speed at which audio/video is played.
played You get a TimeRanges object that shows which parts of the audio/video were played.
preload Sets or returns whether the audio/video need to be loaded when the page loads?
readyState Shows if the audio/video is currently ready to be played.
seekable Produces a TimeRanges object that shows where you can jump to in the audio or video.
seeking Tells if the user is currently looking for something in the audio/video.
src Change or get the current source of the audio/video player.
startDate Gives you a Date object that shows the current time difference.
textTracks Gives back a list of text tracks that you can use.
videoTracks Deprecated. Do not use it.
volume Change or give back the loudness of the sound or video.