HTMLVideoElement
Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement.
interface HTMLVideoElement extends HTMLMediaElement {
disablePictureInPicture: boolean;
height: number;
onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
playsInline: boolean;
poster: string;
readonly videoHeight: number;
readonly videoWidth: number;
width: number;
addEventListener<K extends keyof HTMLVideoElementEventMap>(
type: K,
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;cancelVideoFrameCallback(handle: number): void;
getVideoPlaybackQuality(): VideoPlaybackQuality;
removeEventListener<K extends keyof HTMLVideoElementEventMap>(
type: K,
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;requestPictureInPicture(): Promise<PictureInPictureWindow>;
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
}var HTMLVideoElement: {
prototype: HTMLVideoElement;
new (): HTMLVideoElement;
};§Extends
§Properties
§
onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null
[src]§
onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null
[src]§
playsInline: boolean
[src]Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins.
§
poster: string
[src]Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.
§
readonly videoHeight: number
[src]Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.
§Methods
§
addEventListener<K extends keyof HTMLVideoElementEventMap>(
[src]type: K,
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
getVideoPlaybackQuality(): VideoPlaybackQuality
[src]§
removeEventListener<K extends keyof HTMLVideoElementEventMap>(
[src]type: K,
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void§
requestPictureInPicture(): Promise<PictureInPictureWindow>
[src]§
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number
[src]