attach method

void attach(
  1. Participant participant,
  2. MediaStream? mediaStream
)

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

void attach(Participant participant, MediaStream? mediaStream) {
  _participant = participant;
  _mediaStream = mediaStream;
  _state?._attach(participant, mediaStream);
}