TRTCVideoFrame constructor
- {TRTCVideoPixelFormat videoFormat = TRTCVideoPixelFormat.unknown,
- TRTCVideoBufferType bufferType = TRTCVideoBufferType.unknown,
- TRTCTexture? texture,
- int length = 0,
- int width = 640,
- int height = 360,
- int timestamp = 0,
- TRTCVideoRotation rotation = TRTCVideoRotation.rotation0,
- Uint8List? data}
Implementation
TRTCVideoFrame({
this.videoFormat = TRTCVideoPixelFormat.unknown,
this.bufferType = TRTCVideoBufferType.unknown,
this.texture,
this.length = 0,
this.width = 640,
this.height = 360,
this.timestamp = 0,
this.rotation = TRTCVideoRotation.rotation0,
Uint8List? data,
}) : data = data ?? Uint8List.fromList([]);