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
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de