setSubscriberRemoteSdp method

  1. @override
Future<void> setSubscriberRemoteSdp({
  1. required String targetId,
  2. required String sdp,
  3. required bool videoEnabled,
  4. required bool audioEnabled,
  5. required bool isScreenSharing,
  6. required bool isE2eeEnabled,
  7. required bool isHandRaising,
  8. required CameraType type,
  9. required WebRTCCodec codec,
})
override

Implementation

@override
Future<void> setSubscriberRemoteSdp({
  required String targetId,
  required String sdp,
  required bool videoEnabled,
  required bool audioEnabled,
  required bool isScreenSharing,
  required bool isE2eeEnabled,
  required bool isHandRaising,
  required CameraType type,
  required WebRTCCodec codec,
}) async {
  if (_subscribers[targetId] != null) return;

  final RTCSessionDescription description = RTCSessionDescription(
    sdp,
    DescriptionType.offer.type,
  );

  await _answerSubscriber(
    targetId,
    description,
    videoEnabled,
    audioEnabled,
    isScreenSharing,
    isE2eeEnabled,
    isHandRaising,
    type,
    codec,
  );
}