setVideoQuality method
- VideoQuality newValue
For tracks that support simulcasting, adjust subscribed quality.
This indicates the highest quality the client can accept. If network bandwidth does not allow, the server will automatically reduce quality to optimize for uninterrupted video.
When adaptive stream is active, this preference is merged client-side with the dimensions computed from the visible views, and the smaller (more conservative) of the two is sent to the server.
Implementation
Future<void> setVideoQuality(VideoQuality newValue) async {
if (newValue == _userPreference?.quality) return;
if (!_isManualOperationAllowed()) return;
_userPreference = VideoSettings.quality(newValue);
_emitTrackUpdate();
}