ProcessedVideoRenderer constructor

const ProcessedVideoRenderer({
  1. Key? key,
  2. VirtualBackground? background,
  3. MediaStream? existingStream,
  4. bool processingEnabled = true,
  5. int targetFps = 15,
  6. double? width,
  7. double? height,
  8. VoidCallback? onReady,
  9. void onError(
    1. String error
    )?,
  10. void onFrameProcessed(
    1. Duration processingTime
    )?,
  11. void onStreamSourceReady(
    1. VirtualStreamSource source
    )?,
})

Implementation

const ProcessedVideoRenderer({
  super.key,
  this.background,
  this.existingStream,
  this.processingEnabled = true,
  this.targetFps = 15,
  this.width,
  this.height,
  this.onReady,
  this.onError,
  this.onFrameProcessed,
  this.onStreamSourceReady,
});