TRTCVideoLayout constructor

TRTCVideoLayout(
  1. {int zOrder = 0,
  2. TRTCVideoFillMode fillMode = TRTCVideoFillMode.fill,
  3. int backgroundColor = 0,
  4. TRTCVideoStreamType fixedVideoStreamType = TRTCVideoStreamType.big,
  5. TRTCRect? rect,
  6. TRTCUser? fixedVideoUser,
  7. Uint8List? placeHolderImage}
)

Implementation

TRTCVideoLayout({
  this.zOrder = 0,
  this.fillMode = TRTCVideoFillMode.fill,
  this.backgroundColor = 0,
  this.fixedVideoStreamType = TRTCVideoStreamType.big,
  TRTCRect? rect,
  TRTCUser? fixedVideoUser,
  Uint8List? placeHolderImage,
})  : rect = rect ?? TRTCRect(),
      fixedVideoUser = fixedVideoUser ?? TRTCUser(),
      placeHolderImage = placeHolderImage ?? Uint8List.fromList([]);