VideoView.withMediaStream constructor
- {required Participant? participant,
- required MediaStream? mediaStream,
- ScaleType? scaleType = ScaleType.fill,
- 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);