AgoraLiveInjectStreamConfig Class Reference
Inherits from | NSObject |
---|---|
Declared in | AgoraObjects.h |
size
Size of the added stream to the broadcast.
@property (assign, nonatomic) CGSize size
Discussion
The default value is 0; same size as the original stream.
Declared In
AgoraObjects.h
videoGop
Video GOP of the added stream to the broadcast.
@property (assign, nonatomic) NSInteger videoGop
Discussion
The default value is 30 fps.
Declared In
AgoraObjects.h
videoFramerate
Video frame rate of the added stream to the broadcast.
@property (assign, nonatomic) NSInteger videoFramerate
Discussion
The default value is 15 fps.
Declared In
AgoraObjects.h
videoBitrate
Video bitrate of the added stream to the broadcast.
@property (assign, nonatomic) NSInteger videoBitrate
Discussion
The default value is 400 Kbps.
The setting of the video bitrate is closely linked to the resolution. If the video bitrate you set is beyond a reasonable range, the SDK will set it within a reasonable range instead.
Declared In
AgoraObjects.h
audioSampleRate
Audio sample rate of the added stream to the broadcast.
@property (assign, nonatomic) AgoraAudioSampleRateType audioSampleRate
Discussion
The default value is 48000 Hz. See AgoraAudioSampleRateType for details.
Note:
Agora recommends using the default value.
Declared In
AgoraObjects.h
audioBitrate
Audio bitrate of the added stream to the broadcast.
@property (assign, nonatomic) NSInteger audioBitrate
Discussion
The default value is 48 Kbps.
Note:
Agora recommends using the default value.
Declared In
AgoraObjects.h
audioChannels
Number of audio channels to add to the broadcast. The values are 1 and 2.
@property (assign, nonatomic) NSInteger audioChannels
Discussion
The default value is 1.
Note:
Agora recommends using the default value.
Declared In
AgoraObjects.h
+ defaultConfig
Creates a default stream configuration object.
+ (AgoraLiveInjectStreamConfig *_Nonnull)defaultConfig
Return Value
Default stream configuration object.
Declared In
AgoraObjects.h