setVideoQuality method
Pins the rendition with id (an id from getVideoQualities); -1
restores Auto. Native answers with onVideoQualityChanged once applied.
Implementation
Future<void> setVideoQuality(int id) async {
try {
await _channel.invokeMethod('setVideoQuality', {'id': id});
} catch (e) {
_onError?.call('Failed to set video quality: $e');
}
}