Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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,
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,
options?: boolean | EventListenerOptions,
): void;
requestPictureInPicture(): Promise<PictureInPictureWindow>;
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
}
var HTMLVideoElement: {
prototype: HTMLVideoElement;
}
;

§Extends

§Properties

§
disablePictureInPicture: boolean
[src]
§
height: number
[src]

Gets or sets the height of the video element.

§
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.

§
readonly videoWidth: number
[src]

Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.

§
width: number
[src]

Gets or sets the width of the video element.

§Methods

§
addEventListener<K extends keyof HTMLVideoElementEventMap>(
type: K,
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
cancelVideoFrameCallback(handle: number): void
[src]
§
getVideoPlaybackQuality(): VideoPlaybackQuality
[src]
§
removeEventListener<K extends keyof HTMLVideoElementEventMap>(
type: K,
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]
§
requestPictureInPicture(): Promise<PictureInPictureWindow>
[src]
§
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number
[src]