NERtcOptions class Null safety
Audio and video call parameters
Constructors
- NERtcOptions({String? logDir, int? logLevel, NERtcServerAddresses? serverAddresses, bool? audioAutoSubscribe, bool? audioDisableOverrideSpeakerOnReceiver, bool? audioDisableSWAECOnHeadset, bool? audioAINSEnabled, bool? serverRecordAudio, bool? serverRecordVideo, NERtcServerRecordMode? serverRecordMode, bool? serverRecordSpeaker, bool? publishSelfStream, NERtcMediaCodecMode? videoEncodeMode, NERtcMediaCodecMode? videoDecodeMode, bool? videoCaptureObserverEnabled, NERtcVideoSendMode? videoSendMode, bool? videoH265Enabled, bool? mode1v1Enabled})
-
const
Properties
- audioAINSEnabled → bool?
-
Specifies whether AI-powered noise reduction is enabled. If you enable AI-powered noise reduction, the peer can clearly hear your voice in a noisy environment.
final
- audioAutoSubscribe → bool?
-
Specify whether automatic audio subscription is enabled. The default value is subscribed
final
- audioDisableOverrideSpeakerOnReceiver → bool?
-
If the system switches to earpieces, switching to the speaker is disabled.
The option is valid only on iOS.
The default value is false. If the value is set to true, the SDK is not allowed to switch to the speaker when the system switches to earpieces. Users needs to handle the earpieces switching event.
final
- audioDisableSWAECOnHeadset → bool?
-
No software is used for echo cancellation when setting up headphones
The option is valid only on iOS.
The default value is false. If the value is set to true, the SDK does not use the echo reduction in headset mode. The setting affects the audio quality of the headset in some mobile models.
final
- hashCode → int
-
The hash code for this object.
read-only, inherited
- logDir → String?
-
Log directory
final
- logLevel → int?
-
Log level
final
- mode1v1Enabled → bool?
-
Specify whether the one-on-one mode is enabled for the channel. Set the value before calling joinChannel.
final
- publishSelfStream → bool?
-
Specify whether the local video stream is published with the mixed video stream from the room
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- serverAddresses → NERtcServerAddresses?
-
User-defined server address for on-premises deployment
final
- serverRecordAudio → bool?
-
Specifies whether server audio recording is enabled.
final
- serverRecordMode → NERtcServerRecordMode?
-
Server recording mode
final
- serverRecordSpeaker → bool?
-
Specify whether the speaker is recorded
final
- serverRecordVideo → bool?
-
Specifies whether server video recording is enabled.
final
- videoCaptureObserverEnabled → bool?
-
The callback is triggered to notify whether the video capture is enabled.
The option is valid only on iOS.
final
- videoDecodeMode → NERtcMediaCodecMode?
-
Video decoding mode
final
- videoEncodeMode → NERtcMediaCodecMode?
-
Video encoding mode
final
- videoH265Enabled → bool?
-
Specify whether the H.265 codec is enabled.
final
- videoSendMode → NERtcVideoSendMode?
-
Video publishing mode
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited