Partager via


VideoBufferData interface

Note

This API is in Beta and provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Represents a video frame

Properties

chromaStride

NV12 chroma stride, valid only when video frame format is NV12

height

Video frame height

lumaStride

NV12 luma stride, valid only when video frame format is NV12

stride

RGB stride, valid only when video frame format is RGB

timestamp

The time stamp of the current video frame

videoFrameBuffer

Video frame buffer

width

Video frame width

Property Details

chromaStride

NV12 chroma stride, valid only when video frame format is NV12

chromaStride?: number

Property Value

number

height

Video frame height

height: number

Property Value

number

lumaStride

NV12 luma stride, valid only when video frame format is NV12

lumaStride?: number

Property Value

number

stride

RGB stride, valid only when video frame format is RGB

stride?: number

Property Value

number

timestamp

The time stamp of the current video frame

timestamp?: number

Property Value

number

videoFrameBuffer

Video frame buffer

videoFrameBuffer: Uint8ClampedArray

Property Value

Uint8ClampedArray

width

Video frame width

width: number

Property Value

number