NERtc Windows SDK
V4.4.301
|
#include <nertc_engine_defines.h>
Public 属性 | |
bool | single_video_passthrough |
int | audio_bitrate |
NERtcLiveStreamAudioSampleRate | sampleRate |
int | channels |
NERtcLiveStreamAudioCodecProfile | audioCodecProfile |
Streaming configuration.
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.
NERtcLiveStreamAudioCodecProfile nertc::NERtcLiveConfig::audioCodecProfile |
The audio encoding profile. The default value is NERtcLiveStreamAudioCodecProfileLCAAC, which is the basic encoding profile.
int nertc::NERtcLiveConfig::channels |
The number of audio channels for publishing streams. The default value is 2, which represents the stereo sound.
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.
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.