prepareReceiveVideoFrom method

void prepareReceiveVideoFrom(
  1. RemoteParticipant remoteParticipant,
  2. String streamId
)

Sends the prepareReceiveVideoFrom to the WebSocket server

Implementation

void prepareReceiveVideoFrom(
    RemoteParticipant remoteParticipant, String streamId) {
  final prepareReceiveVideoFromParams = {
    'sender': streamId,
    'reconnect': 'false',
  };
  idsPrepareReceiveVideo[sendJson(JsonConstants.prepareReceiveVideoMethod,
          prepareReceiveVideoFromParams)] =
      Pair(remoteParticipant.connectionId!, streamId);
}