NERtc Unity SDK  V4.5.907
Public Attributes | List of all members
nertc.RtcLiveStreamConfig Struct Reference

Public Attributes

bool singleVideoPassthrough
 
int audioBitrate
 
RtcLiveStreamAudioSampleRate sampleRate
 
int channels
 
RtcLiveStreamAudioCodecProfile audioCodecProfile
 

Detailed Description

Streaming configuration.

Member Data Documentation

◆ singleVideoPassthrough

bool nertc.RtcLiveStreamConfig.singleVideoPassthrough

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.

◆ audioBitrate

int nertc.RtcLiveStreamConfig.audioBitrate

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.

◆ sampleRate

RtcLiveStreamAudioSampleRate nertc.RtcLiveStreamConfig.sampleRate

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

◆ channels

int nertc.RtcLiveStreamConfig.channels

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

◆ audioCodecProfile

RtcLiveStreamAudioCodecProfile nertc.RtcLiveStreamConfig.audioCodecProfile

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

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

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