onVideoTrackAddQuality method
void
onVideoTrackAddQuality(
- int videoTrackUid,
- String qualityId,
- int qualityUid,
- String? name,
- int bandwidth,
- String? codecs,
- int width,
- int height,
- double frameRate,
- double firstFrame,
override
Implementation
@override
void onVideoTrackAddQuality(int videoTrackUid, String qualityId, int qualityUid, String? name, int bandwidth, String? codecs, int width, int height, double frameRate, double firstFrame) {
VideoTrack? videoTrack = _videoTracks.firstWhereOrNull((item) => item.uid == videoTrackUid);
if (videoTrack == null) {
return;
}
VideoQualityImpl videoQuality = VideoQualityImpl(qualityId, qualityUid, name, bandwidth, codecs, width, height, frameRate, firstFrame);
videoTrack.qualities.add(videoQuality);
}