Files
2020-12-05 21:29:49 +01:00

35 lines
3.9 KiB
Plaintext

autoplay autoplay\n\nA Boolean attribute; if specified, the video will automatically begin to play back as soon as it can do so without stopping to finish loading the data.
buffered buffered\n\nAn attribute you can read to determine which time ranges of the media have been buffered. This attribute contains a TimeRanges object.
controls controls\n\nIf this attribute is present, Gecko will offer controls to allow the user to control video playback, including volume, seeking, and pause/resume playback.
crossorigin
height height\n\nThe height of the video's display area, in CSS pixels.
loop loop\n\nA Boolean attribute; if specified, we will, upon reaching the end of the video, automatically seek back to the start.
muted muted\n\nA Boolean attribute which indicates the default setting of the audio contained in the video. If set, the audio will be initially silenced. Its default value is false, meaning that the audio will be played when the video is played.
onabort Script to be run on abort
oncanplay [HTML5]\n\nScript to be run when a file is ready to start playing (when it has buffered enough to begin)
oncanplaythrough [HTML5]\n\nScript to be run when a file can be played all the way to the end without pausing for buffering
oncuechange [HTML5]\n\nScript to be run when the cue changes in a <track> element
ondurationchange [HTML5]\n\nScript to be run when the length of the media changes
onemptied [HTML5]\n\nScript to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects)
onended [HTML5]\n\nScript to be run when the media has reach the end (a useful event for messages like "thanks for listening")
onerror [HTML5]\n\nScript to be run when an error occurs when the file is being loaded
onloadeddata [HTML5]\n\nScript to be run when media data is loaded
onloadedmetadata [HTML5]\n\nScript to be run when meta data (like dimensions and duration) are loaded
onloadstart [HTML5]\n\nScript to be run just as the file begins to load before anything is actually loaded
onpause [HTML5]\n\nScript to be run when the media is paused either by the user or programmatically
onplay [HTML5]\n\nScript to be run when the media is ready to start playing
onplaying [HTML5]\n\nScript to be run when the media actually has started playing
onprogress [HTML5]\n\nScript to be run when the browser is in the process of getting the media data
onratechange [HTML5]\n\nScript to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode)
onseeked [HTML5]\n\nScript to be run when the seeking attribute is set to false indicating that seeking has ended
onseeking [HTML5]\n\nScript to be run when the seeking attribute is set to true indicating that seeking is active
onstalled [HTML5]\n\nScript to be run when the browser is unable to fetch the media data for whatever reason
onsuspend [HTML5]\n\nScript to be run when fetching the media data is stopped before it is completely loaded for whatever reason
ontimeupdate [HTML5]\n\nScript to be run when the playing position has changed (like when the user fast forwards to a different point in the media)
onvolumechange [HTML5]\n\nScript to be run each time the volume is changed which (includes setting the volume to "mute")
onwaiting [HTML5]\n\nScript to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data)
played played\n\nA TimeRanges object indicating all the ranges of the video that have been played.
poster poster\n\nA URL indicating a poster frame to show until the user plays or seeks. If this attribute isn't specified, nothing is displayed until the first frame is available; then the first frame is displayed as the poster frame.
preload
src src\n\nThe URL of the video to embed. This is optional; you may instead use the <source> element within the video block to specify the video to embed.
width width\n\nThe width of the video's display area, in CSS pixels.