RTCVideoFrame - infobip/infobip-rtc-js GitHub Wiki

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
⚠️ **GitHub.com Fallback** ⚠️