NERtcOptions class

音视频通话相关的参数设置

Constructors

NERtcOptions({String? logDir, int? logLevel, NERtcServerAddresses? serverAddresses, bool? audioAutoSubscribe, bool? videoAutoSubscribe, bool? disableFirstJoinUserCreateChannel, 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?
设置是否开启AI降噪,开启AI降噪,在嘈杂环境下,让对方更清晰听到您的声音
final
audioAutoSubscribe bool?
是否自动订阅音频(默认订阅)
final
audioDisableOverrideSpeakerOnReceiver bool?
系统切换听筒事件时,禁用切换到扬声器. 仅在iOS平台有效. 默认值 false, 如设置 true 则禁止SDK在系统切换到听筒时做切换扬声器操作,需要用户自己处理切换听筒事件
final
audioDisableSWAECOnHeadset bool?
设置耳机时不使用软件回声消除功能 仅在iOS平台有效. 默认值 false,如设置true 则SDK在耳机模式下不使用软件回声消除功能,会对某些机型下 耳机的音质效果有影响
final
disableFirstJoinUserCreateChannel bool?
加入房间时禁止创建房间(暂时不支持该功能)
final
hashCode int
The hash code for this object.
no setterinherited
logDir String?
日志路径
final
logLevel int?
日志等级
final
mode1v1Enabled bool?
是否开启频道1V1模式,joinChannel 前设置生效
final
publishSelfStream bool?
是否允许在房间推流时推送自身的视频流 (该参数已废弃)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverAddresses NERtcServerAddresses?
自定义服务器地址,用于私有化部署
final
serverRecordAudio bool?
是否开启服务器录制语音
final
serverRecordMode NERtcServerRecordMode?
服务器录制模式
final
serverRecordSpeaker bool?
是否服务器录制主讲人
final
serverRecordVideo bool?
是否开启服务器录制视频
final
videoAutoSubscribe bool?
是否自动订阅视频(默认不订阅)
final
videoCaptureObserverEnabled bool?
是否允许视频帧回调. 仅在iOS平台有效.
final
videoDecodeMode NERtcMediaCodecMode?
视频解码模式.
final
videoEncodeMode NERtcMediaCodecMode?
视频编码模式
final
videoH265Enabled bool?
是否开启H265
final
videoSendMode NERtcVideoSendMode?
视频发布模式
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited