removeTrack method

  1. @override
Future<bool> removeTrack(
  1. RTCRtpSender sender
)
override

Implementation

@override
Future<bool> removeTrack(RTCRtpSender sender) async {
  var nativeSender = sender as RTCRtpSenderWeb;
  // var nativeTrack = nativeSender.track as MediaStreamTrackWeb;
  jsutil.callMethod(_jsPc, 'removeTrack', [nativeSender.jsRtpSender]);
  return Future<bool>.value(true);
}