VideoFrame extension type

@AvailableInWorkers("window_and_dedicated")

The VideoFrame interface of the Web Codecs API represents a frame of a video.

VideoFrame is a transferable object.


API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

Constructors

VideoFrame(JSObject dataOrImage, [JSObject init])
factory

Properties

codedHeight int
@AvailableInWorkers("window_and_dedicated")
no setter
codedRect DOMRectReadOnly?
@AvailableInWorkers("window_and_dedicated")
no setter
codedWidth int
@AvailableInWorkers("window_and_dedicated")
no setter
colorSpace VideoColorSpace
@AvailableInWorkers("window_and_dedicated")
no setter
displayHeight int
@AvailableInWorkers("window_and_dedicated")
no setter
displayWidth int
@AvailableInWorkers("window_and_dedicated")
no setter
duration int?
@AvailableInWorkers("window_and_dedicated")
no setter
format VideoPixelFormat?
@AvailableInWorkers("window_and_dedicated")
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp int
@AvailableInWorkers("window_and_dedicated")
no setter
visibleRect DOMRectReadOnly?
@AvailableInWorkers("window_and_dedicated")
no setter

Methods

allocationSize([VideoFrameCopyToOptions options]) int
@AvailableInWorkers("window_and_dedicated")
clone() VideoFrame
@AvailableInWorkers("window_and_dedicated")
close() → void
@AvailableInWorkers("window_and_dedicated")
copyTo(AllowSharedBufferSource destination, [VideoFrameCopyToOptions options]) JSPromise<JSArray<PlaneLayout>>
@AvailableInWorkers("window_and_dedicated")
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited