ScreenAudioParameters

The audio configuration for the shared screen stream.

class ScreenAudioParameters {
  const ScreenAudioParameters(
      {this.sampleRate, this.channels, this.captureSignalVolume});

  @JsonKey(name: 'sampleRate')
  final int? sampleRate;

  @JsonKey(name: 'channels')
  final int? channels;

  @JsonKey(name: 'captureSignalVolume')
  final int? captureSignalVolume;

  factory ScreenAudioParameters.fromJson(Map<String, dynamic> json) =>
      _$ScreenAudioParametersFromJson(json);

  Map<String, dynamic> toJson() => _$ScreenAudioParametersToJson(this);
}

Only available where captureAudio is true.

Attributes

sampleRate
Audio sample rate (Hz). The default value is 16000.
channels
The number of audio channels. The default value is 2, which means stereo.
captureSignalVolume
The volume of the captured system audio. The value range is [0, 100]. The default value is 100.