MediaPreview constructor
MediaPreview({
- required MediaStreamResult result,
- MediaPreviewType type = MediaPreviewType.video,
- String? id,
- bool controls = true,
- bool autoplay = true,
- bool muted = true,
- bool loop = false,
- bool playsInline = true,
- String? poster,
- MediaElementController? controller,
- Object? fallback,
- String? className,
- Map<
String, Object?> props = const {}, - Map<
String, Object?> style = const {}, - 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,
});