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
chroma |
NV12 chroma stride, valid only when video frame format is NV12 |
height | Video frame height |
luma |
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 |
video |
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈