Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>HTMLVideoElement

Deno Standard Extensions
Go to Latest
interface HTMLVideoElement
implements HTMLMediaElement
import { type HTMLVideoElement } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement.

Properties

disablePictureInPicture: boolean
height: number

Gets or sets the height of the video element.

onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null
onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null
playsInline: boolean

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

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

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

readonly
videoWidth: number

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

width: number

Gets or sets the width of the video element.

Methods

getVideoPlaybackQuality(): VideoPlaybackQuality
requestPictureInPicture(): Promise<PictureInPictureWindow>
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
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