onAudioTrackAddQuality method

  1. @override
void onAudioTrackAddQuality(
  1. int audioTrackUid,
  2. String qualityId,
  3. int qualityUid,
  4. String? name,
  5. int bandwidth,
  6. String? codecs,
  7. int audioSamplingRate,
)
override

Implementation

@override
void onAudioTrackAddQuality(int audioTrackUid, String qualityId, int qualityUid, String? name, int bandwidth, String? codecs, int audioSamplingRate) {
  AudioTrack? audioTrack = _audioTracks.firstWhereOrNull((item) => item.uid == audioTrackUid);
  if (audioTrack == null) {
    return;
  }

  AudioQualityImpl audioQuality = AudioQualityImpl(qualityId, qualityUid, name, bandwidth, codecs, audioSamplingRate);
  audioTrack.qualities.add(audioQuality);
}