VideoViewController class

A controller for the VideoView that is responsible for attaching a Participant and a MediaStream to the VideoView, detaching them, and getting information about the VideoView state.

An instance of this class can be provided during the instantiation of the VideoView widget, if this widget is constructed using VideoView.forList.

Constructors

VideoViewController()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attach(Participant participant, MediaStream? mediaStream) Future<void>
Attaches a Participant and a MediaStream to the VideoView. This allows the VideoView to display the provided MediaStream if the media stream object belongs to the provided Participant.
detach() Future<void>
Detaches a MediaStream and a Participant from the VideoView to stop displaying the MediaStream.
isAttached() Future<bool>
Returns true if a MediaStream is currently attached to the VideoView.
isScreenShare() Future<bool>
Returns true if the attached MediaStream contains a video track whose contents come from a screen shared by the local participant.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited