targetQuality property

  1. @override
VideoQuality? get targetQuality
inherited

The 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
VideoQuality? get targetQuality => _targetQuality;
  1. @override
set targetQuality (VideoQuality? targetQuality)
override

Implementation

@override
set targetQuality(VideoQuality? targetQuality) {
  super.targetQuality = targetQuality;
  _nativeVideoTrackAPI.setTargetQuality(uid, targetQuality?.uid);
}