VideoView.withMediaStream constructor

const VideoView.withMediaStream(
  1. {required Participant? participant,
  2. required MediaStream? mediaStream,
  3. ScaleType? scaleType = ScaleType.fill,
  4. Key? key}
)

A constructor that should be used when the VideoView is an element in a collection widget, such as a GridView or a ListView. The constructor requires providing the Participant for whom the MediaStream should be displayed, the MediaStream, the ScaleType, and an optional Key.

Implementation

const VideoView.withMediaStream(
    {required this.participant,
    required this.mediaStream,
    this.scaleType = ScaleType.fill,
    Key? key})
    : videoViewController = null,
      super(key: key);