onAddVideoTrack method

  1. @override
void onAddVideoTrack(
  1. String? id,
  2. int uid,
  3. String? label,
  4. String? language,
  5. String? kind,
  6. bool isEnabled,
)
override

Implementation

@override
void onAddVideoTrack(String? id, int uid, String? label, String? language, String? kind, bool isEnabled) {
  VideoTrack videoTrack = VideoTrackImplMobile(
      id,
      uid,
      label,
      language,
      kind,
      VideoQualitiesImpl(), // qualities will be populated in onVideoTrackAddQuality
      isEnabled,
      _nativeVideoTrackAPI);

  _videoTracks.add(videoTrack);
  _videoTracks.dispatchEvent(AddVideoTrackEvent(track: videoTrack));
}