subscriptionInitiatedFromServer method

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

Implementation

void subscriptionInitiatedFromServer(
    RemoteParticipant remoteParticipant, String streamId) {
  final sdpConstraints = <String, String>{
    'offerToReceiveAudio': 'true',
    'offerToReceiveVideo': 'true',
  };
  session.createAnswerForSubscribing(
      remoteParticipant, streamId, sdpConstraints);
}