Title: Theory / Unimportant / CS / Descriptive / Web / HTML; / Media / js
Tags: FromInstruction computer_to_instruction hasNotNewEffectReturnsMeaning some_instruction variable récupéré
On every note of this deck, unless a note says otherwise:
Page: https://www.w3schools.com/tags/ref_av_dom.asp
Language: HTML

Instruction: audioTracks
Returns: an AudioTrackList object representing available audio tracks

Instruction: autoplay
Returns: whether the audio/video should start playing as soon as it is loaded

Instruction: buffered
Returns: a TimeRanges object representing the buffered parts of the audio/video

Instruction: controller
Returns: the MediaController object representing the current media controller of the audio/video

Instruction: controls
Returns: whether the audio/video should display controls (like play/pause etc.)

Instruction: crossOrigin
Returns: the CORS settings of the audio/video

Instruction: currentSrc
Returns: the URL of the current audio/video

Instruction: currentTime
Returns: the current playback position in the audio/video (in seconds)

Instruction: defaultMuted
Returns: Whether the audio/video should be muted by default

Instruction: defaultPlaybackRate
Returns: The default speed of the audio/video playback

Instruction: duration
Returns: The length of the current audio/video (in seconds)

Instruction: ended
Returns: whether the playback of the audio/video has ended or not

Instruction: error
Returns: A MediaError object representing the error state of the audio/video

Instruction: loop
Context: <audio><video>
Returns: whether the audio/video should start over again when finished

Instruction: mediaGroup
Returns: The group the audio/video belongs to (used to link multiple audio/video elements)

Instruction: muted
Returns: Whether the audio/video is muted or not

Instruction: networkState
Returns: The current network state of the audio/video

Instruction: paused
Returns: Whether the audio/video is paused or not

Instruction: playbackRate
Returns: The speed of the audio/video playback

Instruction: played
Returns: A TimeRanges object representing the played parts of the audio/video

Instruction: preload
Returns: Whether the audio/video should be loaded when the page loads

Instruction: readyState
Returns: The current ready state of the audio/video

Instruction: seekable
Returns: A TimeRanges object representing the seekable parts of the audio/video

Instruction: seeking
Returns: Whether the user is currently seeking in the audio/video

Instruction: src
Returns: The current source of the audio/video element

Instruction: startDate
Returns: A Date object representing the current time offset

Instruction: textTracks
Returns: TextTrackList object representing the available text tracks

Instruction: videoTracks
Returns: A VideoTrackList object representing the available video tracks

Instruction: volume
Returns: The volume of the audio/video

Instruction: addTextTrack()
Effect: Adds a new text track to the audio/video

Instruction: canPlayType()
Effect: Checks if the browser can play the specified audio/video type

Instruction: load()
Effect: Re-loads the audio/video element

Instruction: play()
Effect: Starts playing the audio/video

Instruction: pause()
Effect: Pauses the currently playing audio/video