QuickRTCMediaRenderer constructor

const QuickRTCMediaRenderer({
  1. Key? key,
  2. MediaStream? stream,
  3. LocalStream? localStream,
  4. RemoteStream? remoteStream,
  5. bool mirror = false,
  6. RTCVideoViewObjectFit objectFit = RTCVideoViewObjectFit.RTCVideoViewObjectFitCover,
  7. bool? isAudioEnabled,
  8. bool? isVideoEnabled,
  9. String? participantName,
  10. bool isLocal = false,
  11. bool showAudioIndicator = true,
  12. bool showVideoIndicator = false,
  13. bool showName = true,
  14. bool showLocalLabel = true,
  15. OverlayPosition? audioIndicatorPosition,
  16. OverlayPosition? videoIndicatorPosition,
  17. OverlayPosition? namePosition,
  18. CustomPosition? audioCustomPosition,
  19. CustomPosition? videoCustomPosition,
  20. CustomPosition? nameCustomPosition,
  21. Widget audioIndicatorBuilder(
    1. BuildContext context,
    2. bool isEnabled
    )?,
  22. Widget videoIndicatorBuilder(
    1. BuildContext context,
    2. bool isEnabled
    )?,
  23. Widget nameOverlayBuilder(
    1. BuildContext context,
    2. String name,
    3. bool isLocal
    )?,
  24. Widget placeholderBuilder(
    1. BuildContext context,
    2. String? name
    )?,
  25. Widget loadingBuilder(
    1. BuildContext context
    )?,
  26. Widget overlayBuilder(
    1. BuildContext context,
    2. QuickRTCMediaRendererState state
    )?,
  27. BoxDecoration? containerDecoration,
  28. BorderRadius? borderRadius,
  29. EdgeInsets overlayPadding = const EdgeInsets.all(8),
  30. VoidCallback? onTap,
  31. VoidCallback? onDoubleTap,
  32. VoidCallback? onLongPress,
  33. void onStateChanged(
    1. QuickRTCMediaRendererState state
    )?,
})

Implementation

const QuickRTCMediaRenderer({
  super.key,
  // Stream input
  this.stream,
  this.localStream,
  this.remoteStream,
  // Video options
  this.mirror = false,
  this.objectFit = RTCVideoViewObjectFit.RTCVideoViewObjectFitCover,
  // State
  this.isAudioEnabled,
  this.isVideoEnabled,
  // Participant info
  this.participantName,
  this.isLocal = false,
  // Overlay visibility
  this.showAudioIndicator = true,
  this.showVideoIndicator = false,
  this.showName = true,
  this.showLocalLabel = true,
  // Positions
  this.audioIndicatorPosition,
  this.videoIndicatorPosition,
  this.namePosition,
  this.audioCustomPosition,
  this.videoCustomPosition,
  this.nameCustomPosition,
  // Custom builders
  this.audioIndicatorBuilder,
  this.videoIndicatorBuilder,
  this.nameOverlayBuilder,
  this.placeholderBuilder,
  this.loadingBuilder,
  this.overlayBuilder,
  // Styling
  this.containerDecoration,
  this.borderRadius,
  this.overlayPadding = const EdgeInsets.all(8),
  // Callbacks
  this.onTap,
  this.onDoubleTap,
  this.onLongPress,
  this.onStateChanged,
});