setSubscriberRemoteSdp method
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,
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,
);
}