setSessionPreset method

Future<void> setSessionPreset(
  1. String preset
)

A constant value indicating the quality level or bit rate of the output.

You use this property to customize the quality level or bit rate of the output. For possible values of sessionPreset, see CaptureSessionPreset. The default value is CaptureSessionPreset.high.

You can set this value while the session is running.

You can only set a preset if canSetSessionPresets contains that preset.

Implementation

Future<void> setSessionPreset(String preset) {
  return _channel.$setSessionPreset(this, preset);
}