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

x/ogone/src/ogone.dom.d.ts>HTMLVideoElement

Advanced Web Composition for Future
Latest
interface HTMLVideoElement
implements HTMLMediaElement
import { type HTMLVideoElement } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";

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.

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
addEventListener<K extends keyof HTMLMediaElementEventMap>(
type: K,
listener: (this: HTMLVideoElement, ev: HTMLMediaElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof HTMLMediaElementEventMap>(
type: K,
listener: (this: HTMLVideoElement, ev: HTMLMediaElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void