Agora RTC Objective-C API Reference  Refactor
Data Fields
RtmpStreamingVideoConfiguration Struct Reference

Data Fields

int width
 
int height
 
int framerate
 
int bitrate
 
int maxBitrate
 
int minBitrate
 
unsigned int gopInMs
 
int encoderHwSwMode
 
ORIENTATION_MODE orientationMode
 

Detailed Description

Configurations for the RTMP video stream.

Constructor & Destructor Documentation

◆ RtmpStreamingVideoConfiguration()

Field Documentation

◆ width

int width

The width (in pixels) of the video. The default value is 640.

Note
  • The value of the dimension (with the |height| below) does not indicate the orientation mode of the output ratio. For how to set the video orientation, see OrientationMode.

◆ height

int height

The height (in pixels) of the video. The default value is 360.

Note
  • The value of the dimension (with the |width| above) does not indicate the orientation mode of the output ratio. For how to set the video orientation, see OrientationMode.

◆ framerate

int framerate

Frame rate (fps) of the output video stream to be published. The default value is 15 fps.

◆ bitrate

int bitrate

The target bitrate (Kbps) of the output video stream to be published. The default value is 800 Kbps.

◆ maxBitrate

int maxBitrate

(For future use) The maximum bitrate (Kbps) for video. The default value is 960 Kbps.

◆ minBitrate

int minBitrate

(For future use) The minimum bitrate (Kbps) for video. The default value is 600 Kbps.

◆ gopInMs

unsigned int gopInMs

The interval between two keyframes. The default value is 2000ms.

◆ encoderHwSwMode

int encoderHwSwMode

Whether the encoder enables hard coding or soft coding. The default value is 0. 0: default 1: hardware encoder 2: software encoder

◆ orientationMode

ORIENTATION_MODE orientationMode

The orientation mode. See ORIENTATION_MODE.