HTMLVideoElement | WebGPU API reference
Properties
Readonly ATTRIBUTE_NODE
ATTRIBUTE_
Readonly CDATA_SECTION_NODE
CDATA_
Readonly COMMENT_NODE
COMMENT_
Readonly DOCUMENT_FRAGMENT_NODE
DOCUMENT_
Readonly DOCUMENT_NODE
DOCUMENT_
Readonly DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_
Readonly DOCUMENT_POSITION_CONTAINS
DOCUMENT_
Readonly DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_
Readonly DOCUMENT_POSITION_FOLLOWING
DOCUMENT_
Readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_
Readonly DOCUMENT_POSITION_PRECEDING
DOCUMENT_
Readonly DOCUMENT_TYPE_NODE
DOCUMENT_
Readonly ELEMENT_NODE
ELEMENT_
Readonly ENTITY_NODE
ENTITY_
Readonly ENTITY_REFERENCE_NODE
ENTITY_
Readonly HAVE_CURRENT_DATA
HAVE_
Readonly HAVE_ENOUGH_DATA
HAVE_
Readonly HAVE_FUTURE_DATA
HAVE_
Readonly HAVE_METADATA
HAVE_
Readonly HAVE_NOTHING
HAVE_
Readonly NETWORK_EMPTY
NETWORK_
Readonly NETWORK_IDLE
NETWORK_
Readonly NETWORK_LOADING
NETWORK_
Readonly NETWORK_NO_SOURCE
NETWORK_
Readonly NOTATION_NODE
NOTATION_
Readonly PROCESSING_INSTRUCTION_NODE
PROCESSING_
Readonly TEXT_NODE
TEXT_
accessKey
access
Readonly accessKeyLabel
access
ariaAtomic
aria
ariaAutoComplete
aria
ariaBusy
aria
ariaChecked
aria
ariaColCount
aria
ariaColIndex
aria
ariaColSpan
aria
ariaCurrent
aria
ariaDisabled
aria
ariaExpanded
aria
ariaHasPopup
aria
ariaHidden
aria
ariaKeyShortcuts
aria
ariaLabel
aria
ariaLevel
aria
ariaLive
aria
ariaModal
aria
ariaMultiLine
aria
ariaMultiSelectable
aria
ariaOrientation
aria
ariaPlaceholder
aria
ariaPosInSet
aria
ariaPressed
aria
ariaReadOnly
aria
ariaRequired
aria
ariaRoleDescription
aria
ariaRowCount
aria
ariaRowIndex
aria
ariaRowSpan
aria
ariaSelected
aria
ariaSetSize
aria
ariaSort
aria
ariaValueMax
aria
ariaValueMin
aria
ariaValueNow
aria
ariaValueText
aria
Readonly assignedSlot
assigned
Readonly attributes
attributes: NamedNodeMap
autocapitalize
autocapitalize: string
autofocus
autofocus: boolean
autoplay
autoplay: boolean
Readonly baseURI
baseURI: string
Readonly buffered
buffered: TimeRanges
Readonly childElementCount
child
Readonly childNodes
child
Readonly children
children: HTMLCollection
Readonly classList
class
className
class
Readonly clientHeight
client
Readonly clientLeft
client
Readonly clientTop
client
Readonly clientWidth
client
contentEditable
content
controls
controls: boolean
crossOrigin
cross
Readonly currentSrc
current
currentTime
current
Readonly dataset
dataset: DOMStringMap
defaultMuted
default
defaultPlaybackRate
default
dir
dir: string
disablePictureInPicture
disable
disableRemotePlayback
disable
draggable
draggable: boolean
Readonly duration
duration: number
Readonly ended
ended: boolean
enterKeyHint
enter
Readonly error
error: null | MediaError
Readonly firstChild
first
Readonly firstElementChild
first
height
height: number
hidden
hidden: boolean
id
id: string
innerHTML
innerHTML: string
innerText
inner
inputMode
input
Readonly isConnected
is
Readonly isContentEditable
is
lang
lang: string
Readonly lastChild
last
Readonly lastElementChild
last
Readonly localName
local
loop
loop: boolean
Readonly mediaKeys
media
muted
muted: boolean
Readonly namespaceURI
namespaceURI: null | string
Readonly networkState
network
Readonly nextElementSibling
next
Readonly nextSibling
next
Readonly nodeName
node
Readonly nodeType
node
nodeValue
node
Optional nonce
nonce?: string
Readonly offsetHeight
offset
Readonly offsetLeft
offset
Readonly offsetParent
offset
Readonly offsetTop
offset
Readonly offsetWidth
offset
onabort
onabort: null | ((this: GlobalEventHandlers, ev: UIEvent) => any)
onanimationcancel
onanimationcancel: null | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
onanimationend
onanimationend: null | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
onanimationiteration
onanimationiteration: null | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
onanimationstart
onanimationstart: null | ((this: GlobalEventHandlers, ev: AnimationEvent) => any)
onauxclick
onauxclick: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
onblur
onblur: null | ((this: GlobalEventHandlers, ev: FocusEvent) => any)
oncanplay
oncanplay: null | ((this: GlobalEventHandlers, ev: Event) => any)
oncanplaythrough
oncanplaythrough: null | ((this: GlobalEventHandlers, ev: Event) => any)
onchange
onchange: null | ((this: GlobalEventHandlers, ev: Event) => any)
onclick
onclick: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
onclose
onclose: null | ((this: GlobalEventHandlers, ev: Event) => any)
oncontextmenu
oncontextmenu: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
oncopy
oncopy: null | ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any)
oncuechange
oncuechange: null | ((this: GlobalEventHandlers, ev: Event) => any)
oncut
oncut: null | ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any)
ondblclick
ondblclick: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
ondrag
ondrag: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
ondragend
ondragend: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
ondragenter
ondragenter: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
ondragleave
ondragleave: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
ondragover
ondragover: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
ondragstart
ondragstart: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
ondrop
ondrop: null | ((this: GlobalEventHandlers, ev: DragEvent) => any)
ondurationchange
ondurationchange: null | ((this: GlobalEventHandlers, ev: Event) => any)
onemptied
onemptied: null | ((this: GlobalEventHandlers, ev: Event) => any)
onencrypted
onencrypted: null | ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any)
onended
onended: null | ((this: GlobalEventHandlers, ev: Event) => any)
onenterpictureinpicture
onenterpictureinpicture: null | ((this: HTMLVideoElement, ev: Event) => any)
onerror
onerror: OnErrorEventHandler
onfocus
onfocus: null | ((this: GlobalEventHandlers, ev: FocusEvent) => any)
onformdata
onformdata: null | ((this: GlobalEventHandlers, ev: FormDataEvent) => any)
onfullscreenchange
onfullscreenchange: null | ((this: Element, ev: Event) => any)
onfullscreenerror
onfullscreenerror: null | ((this: Element, ev: Event) => any)
ongotpointercapture
ongotpointercapture: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
oninput
oninput: null | ((this: GlobalEventHandlers, ev: Event) => any)
oninvalid
oninvalid: null | ((this: GlobalEventHandlers, ev: Event) => any)
onkeydown
onkeydown: null | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any)
onkeypress
onkeypress: null | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any)
onkeyup
onkeyup: null | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any)
onleavepictureinpicture
onleavepictureinpicture: null | ((this: HTMLVideoElement, ev: Event) => any)
onload
onload: null | ((this: GlobalEventHandlers, ev: Event) => any)
onloadeddata
onloadeddata: null | ((this: GlobalEventHandlers, ev: Event) => any)
onloadedmetadata
onloadedmetadata: null | ((this: GlobalEventHandlers, ev: Event) => any)
onloadstart
onloadstart: null | ((this: GlobalEventHandlers, ev: Event) => any)
onlostpointercapture
onlostpointercapture: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
onmousedown
onmousedown: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
onmouseenter
onmouseenter: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
onmouseleave
onmouseleave: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
onmousemove
onmousemove: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
onmouseout
onmouseout: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
onmouseover
onmouseover: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
onmouseup
onmouseup: null | ((this: GlobalEventHandlers, ev: MouseEvent) => any)
onpaste
onpaste: null | ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any)
onpause
onpause: null | ((this: GlobalEventHandlers, ev: Event) => any)
onplay
onplay: null | ((this: GlobalEventHandlers, ev: Event) => any)
onplaying
onplaying: null | ((this: GlobalEventHandlers, ev: Event) => any)
onpointercancel
onpointercancel: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
onpointerdown
onpointerdown: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
onpointerenter
onpointerenter: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
onpointerleave
onpointerleave: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
onpointermove
onpointermove: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
onpointerout
onpointerout: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
onpointerover
onpointerover: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
onpointerup
onpointerup: null | ((this: GlobalEventHandlers, ev: PointerEvent) => any)
onprogress
onprogress: null | ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any)
onratechange
onratechange: null | ((this: GlobalEventHandlers, ev: Event) => any)
onreset
onreset: null | ((this: GlobalEventHandlers, ev: Event) => any)
onresize
onresize: null | ((this: GlobalEventHandlers, ev: UIEvent) => any)
onscroll
onscroll: null | ((this: GlobalEventHandlers, ev: Event) => any)
onsecuritypolicyviolation
onsecuritypolicyviolation: null | ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any)
onseeked
onseeked: null | ((this: GlobalEventHandlers, ev: Event) => any)
onseeking
onseeking: null | ((this: GlobalEventHandlers, ev: Event) => any)
onselect
onselect: null | ((this: GlobalEventHandlers, ev: Event) => any)
onselectionchange
onselectionchange: null | ((this: GlobalEventHandlers, ev: Event) => any)
onselectstart
onselectstart: null | ((this: GlobalEventHandlers, ev: Event) => any)
onslotchange
onslotchange: null | ((this: GlobalEventHandlers, ev: Event) => any)
onstalled
onstalled: null | ((this: GlobalEventHandlers, ev: Event) => any)
onsubmit
onsubmit: null | ((this: GlobalEventHandlers, ev: SubmitEvent) => any)
onsuspend
onsuspend: null | ((this: GlobalEventHandlers, ev: Event) => any)
ontimeupdate
ontimeupdate: null | ((this: GlobalEventHandlers, ev: Event) => any)
ontoggle
ontoggle: null | ((this: GlobalEventHandlers, ev: Event) => any)
Optional ontouchcancel
ontouchcancel?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any)
Optional ontouchend
ontouchend?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any)
Optional ontouchmove
ontouchmove?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any)
Optional ontouchstart
ontouchstart?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any)
ontransitioncancel
ontransitioncancel: null | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
ontransitionend
ontransitionend: null | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
ontransitionrun
ontransitionrun: null | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
ontransitionstart
ontransitionstart: null | ((this: GlobalEventHandlers, ev: TransitionEvent) => any)
onvolumechange
onvolumechange: null | ((this: GlobalEventHandlers, ev: Event) => any)
onwaiting
onwaiting: null | ((this: GlobalEventHandlers, ev: Event) => any)
onwaitingforkey
onwaitingforkey: null | ((this: HTMLMediaElement, ev: Event) => any)
onwebkitanimationend
onwebkitanimationend: null | ((this: GlobalEventHandlers, ev: Event) => any)
onwebkitanimationiteration
onwebkitanimationiteration: null | ((this: GlobalEventHandlers, ev: Event) => any)
onwebkitanimationstart
onwebkitanimationstart: null | ((this: GlobalEventHandlers, ev: Event) => any)
onwebkittransitionend
onwebkittransitionend: null | ((this: GlobalEventHandlers, ev: Event) => any)
onwheel
onwheel: null | ((this: GlobalEventHandlers, ev: WheelEvent) => any)
outerHTML
outerHTML: string
outerText
outer
Readonly ownerDocument
owner
Readonly parentElement
parent
Readonly parentNode
parent
Readonly part
part: DOMTokenList
Readonly paused
paused: boolean
playbackRate
playback
Readonly played
played: TimeRanges
playsInline
plays
poster
poster: string
Readonly prefix
prefix: null | string
preload
preload: "" | "auto" | "none" | "metadata"
Readonly previousElementSibling
previous
Readonly previousSibling
previous
Readonly readyState
ready
Readonly remote
remote: RemotePlayback
Readonly scrollHeight
scroll
scrollLeft
scroll
scrollTop
scroll
Readonly scrollWidth
scroll
Readonly seekable
seekable: TimeRanges
Readonly seeking
seeking: boolean
Readonly shadowRoot
shadow
slot
slot: string
spellcheck
spellcheck: boolean
src
src: string
srcObject
src
Readonly style
style: CSSStyleDeclaration
tabIndex
tab
Readonly tagName
tag
textContent
text
Readonly textTracks
text
title
title: string
translate
translate: boolean
Readonly videoHeight
video
Readonly videoWidth
video
volume
volume: number
width
width: number
Methods
addEventListener
- add
Event Listener<K>(type: K, listener: ((this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void -
Type Parameters
-
K extends keyof HTMLVideoElementEventMap
Parameters
-
type: K
-
listener: ((this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any)
-
- (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]): any
-
Returns any
-
-
Optionaloptions: boolean | AddEventListenerOptions
Returns void
-
- add
Event Listener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void -
Parameters
-
type: string
-
listener: EventListenerOrEventListenerObject
-
Optionaloptions: boolean | AddEventListenerOptions
Returns void
-
addTextTrack
after
animate
append
appendChild
attachInternals
attachShadow
before
blur
canPlayType
click
cloneNode
closest
- closest<K>(selector: K): null | HTMLElementTagNameMap[K]
-
Type Parameters
-
K extends keyof HTMLElementTagNameMap
Parameters
-
selector: K
Returns null | HTMLElementTagNameMap[K]
-
- closest<K>(selector: K): null | SVGElementTagNameMap[K]
-
Type Parameters
-
K extends keyof SVGElementTagNameMap
Parameters
-
selector: K
Returns null | SVGElementTagNameMap[K]
-
- closest<E>(selectors: string): null | E
-
Type Parameters
-
E extends Element = Element
Parameters
-
selectors: string
Returns null | E
-
compareDocumentPosition
contains
dispatchEvent
fastSeek
focus
getAnimations
getAttribute
getAttributeNS
getAttributeNames
getAttributeNode
getAttributeNodeNS
getBoundingClientRect
getClientRects
getElementsByClassName
getElementsByTagName
- get
Elements By Tag Name<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]> -
Type Parameters
-
K extends keyof HTMLElementTagNameMap
Parameters
-
qualifiedName: K
Returns HTMLCollectionOf<HTMLElementTagNameMap[K]>
-
- get
Elements By Tag Name<K>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]> -
Type Parameters
-
K extends keyof SVGElementTagNameMap
Parameters
-
qualifiedName: K
Returns HTMLCollectionOf<SVGElementTagNameMap[K]>
-
- get
Elements By Tag Name(qualifiedName: string): HTMLCollectionOf<Element> -
Parameters
-
qualifiedName: string
Returns HTMLCollectionOf<Element>
-
getElementsByTagNameNS
- get
Elements By Tag NameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement> -
Parameters
-
namespaceURI: "http://www.w3.org/1999/xhtml"
-
localName: string
Returns HTMLCollectionOf<HTMLElement>
-
- get
Elements By Tag NameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement> -
Parameters
-
namespaceURI: "http://www.w3.org/2000/svg"
-
localName: string
Returns HTMLCollectionOf<SVGElement>
-
- get
Elements By Tag NameNS(namespace: null | string, localName: string): HTMLCollectionOf<Element> -
Parameters
-
namespace: null | string
-
localName: string
Returns HTMLCollectionOf<Element>
-
getRootNode
getVideoPlaybackQuality
hasAttribute
hasAttributeNS
hasAttributes
hasChildNodes
hasPointerCapture
insertAdjacentElement
insertAdjacentHTML
insertAdjacentText
insertBefore
isDefaultNamespace
isEqualNode
isSameNode
load
lookupNamespaceURI
lookupPrefix
matches
normalize
pause
play
prepend
querySelector
- query
Selector<K>(selectors: K): null | HTMLElementTagNameMap[K] -
Type Parameters
-
K extends keyof HTMLElementTagNameMap
Parameters
-
selectors: K
Returns null | HTMLElementTagNameMap[K]
-
- query
Selector<K>(selectors: K): null | SVGElementTagNameMap[K] -
Type Parameters
-
K extends keyof SVGElementTagNameMap
Parameters
-
selectors: K
Returns null | SVGElementTagNameMap[K]
-
- query
Selector<E>(selectors: string): null | E -
Type Parameters
-
E extends Element = Element
Parameters
-
selectors: string
Returns null | E
-
querySelectorAll
- query
Selector All<K>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]> -
Type Parameters
-
K extends keyof HTMLElementTagNameMap
Parameters
-
selectors: K
Returns NodeListOf<HTMLElementTagNameMap[K]>
-
- query
Selector All<K>(selectors: K): NodeListOf<SVGElementTagNameMap[K]> -
Type Parameters
-
K extends keyof SVGElementTagNameMap
Parameters
-
selectors: K
Returns NodeListOf<SVGElementTagNameMap[K]>
-
- query
Selector All<E>(selectors: string): NodeListOf<E> -
Type Parameters
-
E extends Element = Element
Parameters
-
selectors: string
Returns NodeListOf<E>
-
releasePointerCapture
remove
removeAttribute
removeAttributeNS
removeAttributeNode
removeChild
removeEventListener
- remove
Event Listener<K>(type: K, listener: ((this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any), options?: boolean | EventListenerOptions): void -
Type Parameters
-
K extends keyof HTMLVideoElementEventMap
Parameters
-
type: K
-
listener: ((this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any)
-
- (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]): any
-
Returns any
-
-
Optionaloptions: boolean | EventListenerOptions
Returns void
-
- remove
Event Listener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void -
Parameters
-
type: string
-
listener: EventListenerOrEventListenerObject
-
Optionaloptions: boolean | EventListenerOptions
Returns void
-