setScreenShareQuality method
Sets the quality of the participant’s screen-share stream.
- The screen-share counterpart of setQuality: it chooses the quality at which you receive this participant's screen share. The two streams are layered independently, so setting one does not affect the other. Has no effect on the local participant.
Parameters
quality: the desired quality level.
Returns
- A
Future<void>that completes once the native SDK accepts the request, or throws a VideoSDKError carrying itscodeandname.
Example
// Watch a shared screen at full quality
await participant.setScreenShareQuality(VideoQuality.HIGH);
Implementation
Future<void> setScreenShareQuality(VideoQuality quality) async {
if (isLocal) return;
await _screenShareQualityHandler?.call(id, quality.wire);
}