NERtc Windows SDK  V4.4.301
Public 属性 | 所有成员列表
nertc::NERtcLiveConfig结构体 参考

#include <nertc_engine_defines.h>

Public 属性

bool single_video_passthrough
 
int audio_bitrate
 
NERtcLiveStreamAudioSampleRate sampleRate
 
int channels
 
NERtcLiveStreamAudioCodecProfile audioCodecProfile
 

详细描述

Streaming configuration.

类成员变量说明

◆ audio_bitrate

int nertc::NERtcLiveConfig::audio_bitrate

The bitrate of the audio stream.

Unit: kbps. Valid values: 10 to 192.

We recommend that you set the bitrate to 64 or higher for voice scenarios and set 128 or higher for music scenarios.

◆ audioCodecProfile

NERtcLiveStreamAudioCodecProfile nertc::NERtcLiveConfig::audioCodecProfile

The audio encoding profile. The default value is NERtcLiveStreamAudioCodecProfileLCAAC, which is the basic encoding profile.

  • 0: LC-AAC, the basic encoding profile.
  • 1: HE-AAC, the high-efficiency audio encoding profile.

◆ channels

int nertc::NERtcLiveConfig::channels

The number of audio channels for publishing streams. The default value is 2, which represents the stereo sound.

◆ sampleRate

NERtcLiveStreamAudioSampleRate nertc::NERtcLiveConfig::sampleRate

The sample rate of the audio stream. Unit: Hz. The default value is kNERtcLiveStreamAudioSampleRate48000, which indicates the sample rate of 48 kHz.

◆ single_video_passthrough

bool nertc::NERtcLiveConfig::single_video_passthrough

Enables or disables single video pass-through. By default, the setting is disabled.

If you enable video pass-through, and the room ingests only one video stream, then, the stream is not transcoded and does not follow the transcoding flow. The video stream is directly published to a CDN.

If multiple video streams from different room members are mixed into one video stream, this setting becomes invalid, and will not be restored when the stream is restored to the single stream.


该结构体的文档由以下文件生成: