setLocalDescription method

  1. @override
Future<void> setLocalDescription(
  1. RTCSessionDescription description
)
override

Implementation

@override
Future<void> setLocalDescription(RTCSessionDescription description) async {
  try {
    await WebRTC.invokeMethod('setLocalDescription', <String, dynamic>{
      'peerConnectionId': _peerConnectionId,
      'description': description.toMap(),
    });
  } on PlatformException catch (e) {
    throw 'Unable to RTCPeerConnection::setLocalDescription: ${e.message}';
  }
}