Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.HTMLVideoElement

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.HTMLVideoElement
implements HTMLMediaElement
import { type dom } from "https://deno.land/x/evt@v2.4.10/lib/types/index.ts";
const { HTMLVideoElement } = dom;

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

Properties

height: number

Gets or sets the height of the video element.

msHorizontalMirror: boolean
readonly
msIsLayoutOptimalForPlayback: boolean
readonly
msIsStereo3D: boolean
msStereo3DPackingMode: string
msStereo3DRenderMode: string
msZoom: boolean
onMSVideoFormatChanged: ((this: HTMLVideoElement, ev: Event) => any) | null
onMSVideoFrameStepCompleted: ((this: HTMLVideoElement, ev: Event) => any) | null
onMSVideoOptimalLayoutChanged: ((this: HTMLVideoElement, ev: Event) => any) | null
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.

readonly
webkitDisplayingFullscreen: boolean
readonly
webkitSupportsFullscreen: boolean
width: number

Gets or sets the width of the video element.

Methods

getVideoPlaybackQuality(): VideoPlaybackQuality
msFrameStep(forward: boolean): void
msInsertVideoEffect(
activatableClassId: string,
effectRequired: boolean,
config?: any,
): void
msSetVideoRectangle(
left: number,
top: number,
right: number,
bottom: number,
): void
webkitEnterFullScreen(): void
webkitEnterFullscreen(): void
webkitExitFullScreen(): void
webkitExitFullscreen(): void
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