NERtc Windows SDK
Public Attributes | List of all members
nertc::NERtcLiveConfig Struct Reference

#include <nertc_engine_defines.h>

Public Attributes

bool single_video_passthrough
 
int audio_bitrate
 
NERtcLiveStreamAudioSampleRate sampleRate
 
int channels
 
NERtcLiveStreamAudioCodecProfile audioCodecProfile
 

Detailed Description

直播流配置

Member Data Documentation

int nertc::NERtcLiveConfig::audio_bitrate

音频推流码率。

单位为 kbps,取值范围为 10~192。

语音场景建议设置为 64 及以上码率,音乐场景建议设置为 128 及以上码率。

NERtcLiveStreamAudioCodecProfile nertc::NERtcLiveConfig::audioCodecProfile

音频编码规格。默认值 NERtcLiveStreamAudioCodecProfileLCAAC,普通编码规格。

  • 0: LC-AAC 规格,表示基本音频编码规格
  • 1: HE-AAC 规格,表示高效音频编码规格。
int nertc::NERtcLiveConfig::channels

音频推流声道数,默认值为 2 双声道。

NERtcLiveStreamAudioSampleRate nertc::NERtcLiveConfig::sampleRate

音频推流采样率。单位为Hz。默认为 kNERtcLiveStreamAudioSampleRate48000,即采样率为 48 kHz。

bool nertc::NERtcLiveConfig::single_video_passthrough

单路视频透传开关,默认为关闭状态。

开启后,如果房间中只有一路视频流输入, 则不对输入视频流进行转码,不遵循转码布局,直接推流 CDN。

如果有多个房间成员视频流混合为一路流,则该设置失效,并在恢复为一个成员画面(单路流)时也不会恢复。


The documentation for this struct was generated from the following file: