onRemoveVideoTrack method

  1. @override
void onRemoveVideoTrack(
  1. int uid
)
override

Implementation

@override
void onRemoveVideoTrack(int uid) {
  VideoTrack? videoTrack = _videoTracks.firstWhereOrNull((item) => item.uid == uid);
  if (videoTrack == null) {
    return;
  }

  _videoTracks.remove(videoTrack);
  _videoTracks.dispatchEvent(RemoveVideoTrackEvent(track: videoTrack));
}