targetQualities property

  1. @override
VideoQualities? get targetQualities
override

One or more desired qualities of the media track.

Remarks:

  • If desired qualities are present, the Adaptive Bitrate mechanism of the player will limit itself to these qualities.
  • If one desired quality is present, the Adaptive Bitrate mechanism of the player will be disabled and the desired quality will be played back.

Limitations:

  • Not available on iOS

Implementation

@override
VideoQualities? get targetQualities => _targetQualities;
  1. @override
  2. @mustCallSuper
set targetQualities (List<VideoQuality>? targetQualities)
override

Implementation

@override
@mustCallSuper
set targetQualities(List<VideoQuality>? targetQualities) {
  VideoQualities? videoQualities = null;
  if (targetQualities != null) {
    videoQualities = VideoQualitiesImpl();
    videoQualities.addAll(targetQualities);
  }
  this._targetQualities = videoQualities;
}