MediaPreview constructor

MediaPreview({
  1. required MediaStreamResult result,
  2. MediaPreviewType type = MediaPreviewType.video,
  3. String? id,
  4. bool controls = true,
  5. bool autoplay = true,
  6. bool muted = true,
  7. bool loop = false,
  8. bool playsInline = true,
  9. String? poster,
  10. MediaElementController? controller,
  11. Object? fallback,
  12. String? className,
  13. Map<String, Object?> props = const {},
  14. Map<String, Object?> style = const {},
  15. DartStyle? dartStyle,
})

Creates a live media preview for camera, microphone, or screen streams.

Implementation

MediaPreview({
  required this.result,
  this.type = MediaPreviewType.video,
  this.id,
  this.controls = true,
  this.autoplay = true,
  this.muted = true,
  this.loop = false,
  this.playsInline = true,
  this.poster,
  this.controller,
  this.fallback,
  this.className,
  this.props = const {},
  this.style = const {},
  this.dartStyle,
});