replaceTrack method
Implementation
@override
Future<void> replaceTrack(MediaStreamTrack track) async {
try {
await WebRTC.invokeMethod('rtpSenderReplaceTrack', <String, dynamic>{
'peerConnectionId': _peerConnectionId,
'rtpSenderId': _id,
'trackId': track.id
});
} on PlatformException catch (e) {
throw 'Unable to RTCRtpSender::replaceTrack: ${e.message}';
}
}