interface HTMLVideoElement
implements HTMLMediaElement
import { type HTMLVideoElement } from "https://deno.land/x/yxz@0.32.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
onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null
onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null
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.
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.
Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.
Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.
Methods
getVideoPlaybackQuality(): VideoPlaybackQuality
requestPictureInPicture(): Promise<PictureInPictureWindow>
addEventListener<K extends keyof HTMLVideoElementEventMap>(): void
type: K,
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof HTMLVideoElementEventMap>(): void
type: K,
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,