setVideoDimensions method
- VideoDimensions newValue
Set preferred video dimensions for this track.
Server will choose the appropriate layer based on these dimensions. Will override previous calls to setVideoQuality.
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> setVideoDimensions(VideoDimensions newValue) async {
if (newValue == _userPreference?.dimensions) return;
if (!_isManualOperationAllowed()) return;
_userPreference = VideoSettings.dimensions(newValue);
_emitTrackUpdate();
}