onAudioTrackAddQuality method
void
onAudioTrackAddQuality(
- int audioTrackUid,
- String qualityId,
- int qualityUid,
- String? name,
- int bandwidth,
- String? codecs,
- 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);
}