TRTCVideoFrame constructor

TRTCVideoFrame(
  1. {TRTCVideoPixelFormat videoFormat = TRTCVideoPixelFormat.unknown,
  2. TRTCVideoBufferType bufferType = TRTCVideoBufferType.unknown,
  3. TRTCTexture? texture,
  4. int length = 0,
  5. int width = 640,
  6. int height = 360,
  7. int timestamp = 0,
  8. TRTCVideoRotation rotation = TRTCVideoRotation.rotation0,
  9. 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([]);