attach method
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.
Implementation
Future<void> attach(Participant participant, MediaStream? mediaStream) {
final state = _state;
if (state != null) {
return state._attach(participant, mediaStream);
}
developer.log("VideoViewController.attach(): The VideoView has not been instantiated yet.");
return Future.error("The VideoView has not been instantiated yet.");
}