subscribe method

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

Subscribes to a remote participant

Implementation

void subscribe(RemoteParticipant remoteParticipant, String streamId) {
  if (mediaServer == 'kurento') {
    subscriptionInitiatedFromClient(remoteParticipant, streamId);
  } else {
    prepareReceiveVideoFrom(remoteParticipant, streamId);
  }
}