NERtc Unity SDK  V4.5.907
Public 属性 | 所有成员列表
nertc.RtcConstants类 参考

Public 属性

readonly string kNERtcKeyRecordHostEnabled = "record_host_enabled"
 
readonly string kNERtcKeyRecordAudioEnabled = "record_audio_enabled"
 
readonly string kNERtcKeyRecordVideoEnabled = "record_video_enabled"
 
readonly string kNERtcKeyRecordType = "record_type"
 
readonly string kNERtcKeyAutoSubscribeAudio = "auto_subscribe_audio"
 
readonly string kNERtcKeyEnableAudioASLManualSubscribe = "enable_audio_asl_manual_subscribe"
 
readonly string kNERtcKeyPublishSelfStreamEnabled = "publish_self_stream_enabled"
 
readonly string kNERtcKeyLogLevel = "log_level"
 
readonly string kNERtcKeyAudioProcessingAECEnable = "audio_processing_aec_enable"
 
readonly string kNERtcKeyAudioAECLowLevelEnable = "audio_aec_low_level_enable"
 
readonly string kNERtcKeyAudioProcessingAGCEnable = "audio_processing_agc_enable"
 
readonly string kNERtcKeyAudioProcessingNSEnable = "audio_processing_ns_enable"
 
readonly string kNERtcKeyAudioProcessingAINSEnable = "audio_processing_ai_ns_enable"
 
readonly string kNERtcKeyAudioProcessingExternalAudioMixEnable = "audio_processing_external_audiomix_enable"
 
readonly string kNERtcKeyAudioProcessingEarphone = "audio_processing_earphone"
 
readonly string kNERtcKeyVideoSendOnPubType = "video_sendonpub_type"
 
readonly string kNERtcKeyChannel1V1ModeEnabled = "channel_1v1_mode_enabled"
 
readonly string kNERtcKeyExtraInfo = "extra_info"
 
readonly string kNERtcKeyAudioDeviceAutoSelectType = "audio_device_auto_select_type"
 
readonly string kNERtcKeyEnableReportVolumeWhenMute = "enable_report_volume_when_mute"
 
readonly string kNERtcKeyEnableVideoCaptureObserver = "enable_video_capture_observer"
 
readonly string kNERtcKeyVideoPreferHWEncode = "video_prefer_hw_encode"
 
readonly string kNERtcKeyVideoPreferHWDecode = "video_prefer_hw_decode"
 
readonly string kNERtcKeyEnableDynamicToken = "enable_dynamic_token"
 
readonly string kNERtcExternalVideoDeviceID = "nertc-video-external-device"
 
readonly string kNERtcAudioDeviceAutoID = "nertc-audio-device-auto"
 

详细描述

通过 JSON 配置 SDK 提供技术预览或特别定制功能。以标准化方式公开 JSON 选项。详见 API setParameters。

类成员变量说明

◆ kNERtcKeyRecordHostEnabled

readonly string nertc.RtcConstants.kNERtcKeyRecordHostEnabled = "record_host_enabled"

bool value. true: 录制主讲人, false: 不是录制主讲人。通话前设置有效。

◆ kNERtcKeyRecordAudioEnabled

readonly string nertc.RtcConstants.kNERtcKeyRecordAudioEnabled = "record_audio_enabled"

bool value,启用服务器音频录制。默认值 false。通话前设置有效。

◆ kNERtcKeyRecordVideoEnabled

readonly string nertc.RtcConstants.kNERtcKeyRecordVideoEnabled = "record_video_enabled"

bool value,启用服务器视频录制。默认值 false。通话前设置有效。

◆ kNERtcKeyRecordType

readonly string nertc.RtcConstants.kNERtcKeyRecordType = "record_type"

int value, NERtcRecordType。通话前设置有效。

◆ kNERtcKeyAutoSubscribeAudio

readonly string nertc.RtcConstants.kNERtcKeyAutoSubscribeAudio = "auto_subscribe_audio"

bool value,其他用户打开音频时,自动订阅。默认值 true。通话前设置有效。

◆ kNERtcKeyEnableAudioASLManualSubscribe

readonly string nertc.RtcConstants.kNERtcKeyEnableAudioASLManualSubscribe = "enable_audio_asl_manual_subscribe"

bool value,在ASL模式下手动订阅音频。默认值 false。通话前设置有效。

◆ kNERtcKeyPublishSelfStreamEnabled

readonly string nertc.RtcConstants.kNERtcKeyPublishSelfStreamEnabled = "publish_self_stream_enabled"

bool value,开启旁路直播。默认值 false。通话前设置有效。

◆ kNERtcKeyLogLevel

readonly string nertc.RtcConstants.kNERtcKeyLogLevel = "log_level"

int value, NERtcLogLevel,SDK 输出小于或等于该级别的 log,默认为 kNERtcLogLevelInfo。

◆ kNERtcKeyAudioProcessingAECEnable

readonly string nertc.RtcConstants.kNERtcKeyAudioProcessingAECEnable = "audio_processing_aec_enable"

bool value. AEC 开关,默认值 true。

◆ kNERtcKeyAudioAECLowLevelEnable

readonly string nertc.RtcConstants.kNERtcKeyAudioAECLowLevelEnable = "audio_aec_low_level_enable"

bool value. low level AEC 开关,默认值 false,需要 kNERtcKeyAudioProcessingAECEnable 打开才生效。

◆ kNERtcKeyAudioProcessingAGCEnable

readonly string nertc.RtcConstants.kNERtcKeyAudioProcessingAGCEnable = "audio_processing_agc_enable"

bool value. AGC 开关,默认值 true。

◆ kNERtcKeyAudioProcessingNSEnable

readonly string nertc.RtcConstants.kNERtcKeyAudioProcessingNSEnable = "audio_processing_ns_enable"

bool value. NS 开关,默认值 true。

◆ kNERtcKeyAudioProcessingAINSEnable

readonly string nertc.RtcConstants.kNERtcKeyAudioProcessingAINSEnable = "audio_processing_ai_ns_enable"

bool value. AI NS 开关,建议通话前修改,默认值 false。

◆ kNERtcKeyAudioProcessingExternalAudioMixEnable

readonly string nertc.RtcConstants.kNERtcKeyAudioProcessingExternalAudioMixEnable = "audio_processing_external_audiomix_enable"

bool value. 输入混音开关,默认值 false。

◆ kNERtcKeyAudioProcessingEarphone

readonly string nertc.RtcConstants.kNERtcKeyAudioProcessingEarphone = "audio_processing_earphone"

bool value. 通知 SDK 是否使用耳机, true: 使用耳机, false: 不使用耳机,默认值 false。

◆ kNERtcKeyVideoSendOnPubType

readonly string nertc.RtcConstants.kNERtcKeyVideoSendOnPubType = "video_sendonpub_type"

int value. NERtcSendOnPubType;设置视频发送策略,默认发送大流 kNERtcSendOnPubHigh。通话前设置有效。

◆ kNERtcKeyChannel1V1ModeEnabled

readonly string nertc.RtcConstants.kNERtcKeyChannel1V1ModeEnabled = "channel_1v1_mode_enabled"

bool value. 1v1 模式开关,默认关闭。通话前设置有效。

◆ kNERtcKeyExtraInfo

readonly string nertc.RtcConstants.kNERtcKeyExtraInfo = "extra_info"

string value. APP 标识,用于后台识别用户产品名称。

◆ kNERtcKeyAudioDeviceAutoSelectType

readonly string nertc.RtcConstants.kNERtcKeyAudioDeviceAutoSelectType = "audio_device_auto_select_type"

音频设备自动选择策略。int 类型。默认值为 0。

  • 0:优先选择默认设备。
  • 1:优先选择可用设备。

◆ kNERtcKeyEnableReportVolumeWhenMute

readonly string nertc.RtcConstants.kNERtcKeyEnableReportVolumeWhenMute = "enable_report_volume_when_mute"

本地用户静音时是否返回原始音量。 布尔值,默认值为 false。

◆ kNERtcKeyEnableVideoCaptureObserver

readonly string nertc.RtcConstants.kNERtcKeyEnableVideoCaptureObserver = "enable_video_capture_observer"

是否需要开启视频数据采集回调,开启后开发者可以获取到原始视频数据。
布尔值,默认值 NO。
开启后如果需要关闭,需要通过调用 Release 来清除。

◆ kNERtcKeyVideoPreferHWEncode

readonly string nertc.RtcConstants.kNERtcKeyVideoPreferHWEncode = "video_prefer_hw_encode"

是否优先使用硬件编码视频数据。
布尔值,默认值 YES。
请在初始化( IRtcEngine.Initialize )之前 通过 IRtcEngine.SetParameters 方法设置该参数,否则该参数会在下次初始化之后生效。

◆ kNERtcKeyVideoPreferHWDecode

readonly string nertc.RtcConstants.kNERtcKeyVideoPreferHWDecode = "video_prefer_hw_decode"

是否优先使用硬件解码视频数据。
布尔值,默认值 YES。
请在初始化( IRtcEngine.Initialize )之前通过 IRtcEngine.SetParameters 设置该参数,否则该参数会在下次初始化之后生效。

◆ kNERtcKeyEnableDynamicToken

readonly string nertc.RtcConstants.kNERtcKeyEnableDynamicToken = "enable_dynamic_token"

是否使用动态token加入通话。 布尔值,默认值为 false。

注解
默认不使用动态token,该功能需要在通话前调用
  • true:使用动态token。
  • false:不使用动态token。

◆ kNERtcExternalVideoDeviceID

readonly string nertc.RtcConstants.kNERtcExternalVideoDeviceID = "nertc-video-external-device"

外部视频输入源设备ID,开启外部输入之后,需要通过setDevice设置此设备ID(windows有效)。

◆ kNERtcAudioDeviceAutoID

readonly string nertc.RtcConstants.kNERtcAudioDeviceAutoID = "nertc-audio-device-auto"

音频设备自动选择ID,设置该ID为设备时,SDK会根据设备插拔系统设置等自动选择合适音频设备(windows有效)。


该类的文档由以下文件生成: