Definition
HTML Standard defines HTMLVideoElement
[Exposed=Window]
interface HTMLVideoElement : HTMLMediaElement {
[HTMLConstructor] constructor();
[CEReactions] attribute unsigned long width;
[CEReactions] attribute unsigned long height;
readonly attribute unsigned long videoWidth;
readonly attribute unsigned long videoHeight;
[CEReactions] attribute USVString poster;
[CEReactions] attribute boolean playsInline;
};
This interface is extended in the following specifications:
- Media Playback Quality
partial interface HTMLVideoElement { VideoPlaybackQuality getVideoPlaybackQuality(); };
- HTMLVideoElement.requestVideoFrameCallback()
partial interface HTMLVideoElement { unsigned long requestVideoFrameCallback(VideoFrameRequestCallback callback); undefined cancelVideoFrameCallback(unsigned long handle); };
- Picture-in-Picture
partial interface HTMLVideoElement { [NewObject] Promise<PictureInPictureWindow> requestPictureInPicture(); attribute EventHandler onenterpictureinpicture; attribute EventHandler onleavepictureinpicture; [CEReactions] attribute boolean disablePictureInPicture; };
Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface HTMLVideoElement : HTMLMediaElement {
[HTMLConstructor] constructor();
[CEReactions] attribute unsigned long width;
[CEReactions] attribute unsigned long height;
readonly attribute unsigned long videoWidth;
readonly attribute unsigned long videoHeight;
[CEReactions] attribute USVString poster;
[CEReactions] attribute boolean playsInline;
VideoPlaybackQuality getVideoPlaybackQuality();
unsigned long requestVideoFrameCallback(VideoFrameRequestCallback callback);
undefined cancelVideoFrameCallback(unsigned long handle);
[NewObject] Promise<PictureInPictureWindow> requestPictureInPicture();
attribute EventHandler onenterpictureinpicture;
attribute EventHandler onleavepictureinpicture;
[CEReactions] attribute boolean disablePictureInPicture;
};
Methods and attributes that return objects implementing HTMLVideoElement
Referring IDL interfaces/dictionaries
Referring specifications
- WebGL Specification refers to
HTMLVideoElement
- Media Playback Quality refers to
HTMLVideoElement
- HTMLVideoElement.requestVideoFrameCallback() refers to
HTMLVideoElement
- Picture-in-Picture refers to
HTMLVideoElement
- WebGPU refers to
HTMLVideoElement
- WebXR Layers API Level 1 refers to
HTMLVideoElement