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

Public Attributes

RtcVideoProfileType maxProfile
 
uint width
 
uint height
 
RtcVideoCropMode cropMode
 
RtcVideoFramerateType framerate
 
RtcVideoFramerateType minFramerate
 
uint bitrate
 
uint minBitrate
 
RtcDegradationPreference degradationPreference
 
RtcVideoMirrorMode mirrorMode
 
RtcVideoOrientationMode orientationMode
 

Detailed Description

The video encoding profile configuration.

Member Data Documentation

◆ maxProfile

RtcVideoProfileType nertc.RtcVideoConfig.maxProfile

The resolution of video encoding used to measure encoding quality. For more information, see RtcVideoProfileType

◆ width

uint nertc.RtcVideoConfig.width

Video encoding resolution, an indicator of encoding quality, is represented by width x height. You can select this profile or maxProfile.
The width represents the pixels of the video frame on the horizontal axis. You can enter a custom width.

  • If you set the value to a negative number, the maxProfile setting is used.
  • If you need to customize the resolution, set this profile, and maxProfile becomes invalid. If the width and height of the custom video input are invalid, the width and height are automatically scaled based on maxProfile.

◆ height

uint nertc.RtcVideoConfig.height

Video encoding resolution, an indicator of encoding quality, is represented by width x height. You can select this profile or maxProfile.
The height represents the pixels of the video frame on the vertical axis. You can enter a custom height.

  • If you set the value to a negative number, the maxProfile setting is used.
  • If you need to customize the resolution, set this profile, and maxProfile becomes invalid. If the width and height of the custom video input are invalid, the width and height are automatically scaled based on maxProfile.

◆ cropMode

RtcVideoCropMode nertc.RtcVideoConfig.cropMode

Video crop mode, aspect ratio. The default value is kNERtcVideoCropModeDefault. For more information, see NERtcVideoCropMode.

◆ framerate

RtcVideoFramerateType nertc.RtcVideoConfig.framerate

The frame rate of the mainstream video encoding. For more information, see RtcVideoFramerateType . By default, the frame rate is determined based on maxProfile.

  • maxProfile >= STANDARD. frameRate = FRAMERATEFPS30.
  • maxProfile < STANDARD. frameRate = FRAMERATEFPS15.

◆ minFramerate

RtcVideoFramerateType nertc.RtcVideoConfig.minFramerate

The minimum frame rate for video encoding. The default value is 0, which indicates that the minimum frame rate is used by default

◆ bitrate

uint nertc.RtcVideoConfig.bitrate

Video encoding bitrate (kbps), use the default value if the setting is set to 0.

◆ minBitrate

uint nertc.RtcVideoConfig.minBitrate

The minimum bitrate of video encoding in kbps. You can manually set the required minimum bitrate based on your business requirements. If the bitrate is set to 0, the SDK computes and processes automatically.

◆ degradationPreference

RtcDegradationPreference nertc.RtcVideoConfig.degradationPreference

Video encoding degradation preference when the bandwidth is limited. For more information, see RtcDegradationPreference .

◆ mirrorMode

RtcVideoMirrorMode nertc.RtcVideoConfig.mirrorMode

Set the mirror mode for the local video encoding. The mirror mode is used for publishing the local video stream. The setting only affects the video picture seen by remote users.

◆ orientationMode

RtcVideoOrientationMode nertc.RtcVideoConfig.orientationMode

Set the orientation mode of the local video encoding, The orientation mode is used for publishing the local video stream, which only affects the video picture seen by remote users.


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