onAddAudioTrack method

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

Implementation

@override
void onAddAudioTrack(String? id, int uid, String? label, String? language, String? kind, bool isEnabled) {
  AudioTrack audioTrack = AudioTrackImplMobile(
      id,
      uid,
      label,
      language,
      kind,
      AudioQualitiesImpl(), // qualities will be populated in onAudioTrackAddQuality
      isEnabled,
      _nativeAudioTrackAPI);

  _audioTracks.add(audioTrack);
  _audioTracks.dispatchEvent(AddAudioTrackEvent(track: audioTrack));
}