removeTrack method

  1. @override
Future<void> removeTrack(
  1. MediaStreamTrack track, {
  2. bool removeFromNative = true,
})
override

Removes the given MediaStreamTrack object from this MediaStream.

Implementation

@override
Future<void> removeTrack(MediaStreamTrack track,
    {bool removeFromNative = true}) async {
  if (removeFromNative) {
    var _native = track as MediaStreamTrackWeb;
    jsStream.removeTrack(_native.jsTrack);
  }
}