Skip to content

RTCVideoFrame

Adnan Mujagić edited this page Jul 5, 2024 · 1 revision

type RTCVideoFrame = HTMLVideoElement | HTMLImageElement | HTMLCanvasElement | ImageBitmap

Description

Represents various formats a video frame can take, including HTMLVideoElement, HTMLImageElement, HTMLCanvasElement, and ImageBitmap.

Example

const image: HTMLImageElement = new Image()
const rtcVideoFrame: RTCVideoFrame = image

Tutorials

Migration guides

Reference documentation

Clone this wiki locally