setParameters method
Implementation
@override
Future<bool> setParameters(RTCRtpParameters parameters) async {
_parameters = parameters;
try {
final response =
await WebRTC.invokeMethod('rtpSenderSetParameters', <String, dynamic>{
'peerConnectionId': _peerConnectionId,
'rtpSenderId': _id,
'parameters': parameters.toMap()
});
return response['result'];
} on PlatformException catch (e) {
throw 'Unable to RTCRtpSender::setParameters: ${e.message}';
}
}