Class ExternalVideoFrame

The external video frame.

Hierarchy

  • ExternalVideoFrame

Constructors

Properties

buffer?: Uint8Array

Video frame buffer.

cropBottom?: number

Raw data related parameter. The number of pixels trimmed from the bottom. The default value is 0.

cropLeft?: number

Raw data related parameter. The number of pixels trimmed from the left. The default value is 0.

cropRight?: number

Raw data related parameter. The number of pixels trimmed from the right. The default value is 0.

cropTop?: number

Raw data related parameter. The number of pixels trimmed from the top. The default value is 0.

eglType?: EglContextType

This parameter only applies to video data in Texture format. Texture ID of the video frame.

The pixel format. See VideoPixelFormat .

height?: number

Height of the incoming video frame.

matrix?: number[]

This parameter only applies to video data in Texture format. Incoming 4 × 4 transformational matrix. The typical value is a unit matrix.

metadata_buffer?: Uint8Array

This parameter only applies to video data in Texture format. The MetaData buffer. The default value is NULL.

metadata_size?: number

This parameter only applies to video data in Texture format. The MetaData size. The default value is 0.

rotation?: number

Raw data related parameter. The clockwise rotation of the video frame. You can set the rotation angle as 0, 90, 180, or 270. The default value is 0.

stride?: number

Line spacing of the incoming video frame, which must be in pixels instead of bytes. For textures, it is the width of the texture.

textureId?: number

This parameter only applies to video data in Texture format. Incoming 4 × 4 transformational matrix. The typical value is a unit matrix.

timestamp?: number

Timestamp (ms) of the incoming video frame. An incorrect timestamp results in frame loss or unsynchronized audio and video.

The video type. See VideoBufferType .

Generated using TypeDoc