NERtc iOS SDK  V4.4.301
属性 | 所有成员列表
NERtcLiveConfig类 参考

Settings, such as encoding parameters of RTC streams 更多...

#import <NERtcEngineBase.h>

类 NERtcLiveConfig 继承关系图:

属性

BOOL singleVideoPassthrough
 Enables or disables single video pass-through. 更多...
 
NSInteger audioBitrate
 The bitrate of the audio stream. 更多...
 
NERtcLiveStreamAudioSampleRate sampleRate
 The sample rate of the audio stream. 更多...
 
NSInteger channels
 The number of audio channels for pushing streams. 更多...
 
NERtcLiveStreamAudioCodecProfile audioCodecProfile
 The audio encoding profile. 更多...
 

详细描述

Settings, such as encoding parameters of RTC streams

属性说明

◆ audioBitrate

- (NSInteger) audioBitrate
readwritenonatomicassign

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) audioCodecProfile
readwritenonatomicassign

The audio encoding profile.

-0: (default) LC-AAC that indicates the basic audio encoding specifications. -1: HE-AAC that indicates high-efficiency audio encoding specifications.

◆ channels

- (NSInteger) channels
readwritenonatomicassign

The number of audio channels for pushing streams.

  • 1: mono sound
  • 2: (default) stereo sound

◆ sampleRate

- (NERtcLiveStreamAudioSampleRate) sampleRate
readwritenonatomicassign

The sample rate of the audio stream.

Unit: Hz. Valid values:

  • 32000: The sample rate is 32 kHz.
  • 44100: The sample rate is 44.1 kHz.
  • 48000 (default): The sample rate is 48 kHz.

◆ singleVideoPassthrough

- (BOOL) singleVideoPassthrough
readwritenonatomicassign

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 pushed 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.


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