Agora RTC Objective-C API Reference  Refactor
Properties
AgoraRtcMediaStreamInfo Class Reference

Inherits <NSObject>.

Properties

NSInteger streamIndex
 
AgoraMediaStreamType streamType
 
NSString *_Nonnull codecName
 
NSString *_Nullable language
 
NSInteger videoFrameRate
 
NSInteger videoBitRate
 
NSInteger videoWidth
 
NSInteger videoHeight
 
NSInteger audioSampleRate
 
NSInteger audioChannels
 
NSInteger duration
 
NSInteger rotation
 

Property Documentation

◆ streamIndex

- (NSInteger) streamIndex
readwritenonatomicassign

The index of the media stream.

◆ streamType

- (AgoraMediaStreamType) streamType
readwritenonatomicassign

The type of the media stream. See AgoraMediaStreamType.

◆ codecName

- (NSString* _Nonnull) codecName
readwritenonatomiccopy

The codec of the media stream.

◆ language

- (NSString* _Nullable) language
readwritenonatomiccopy

The language of the media stream.

◆ videoFrameRate

- (NSInteger) videoFrameRate
readwritenonatomicassign

This parameter only takes effect for video streams, and indicates the video frame rate (fps).

◆ videoBitRate

- (NSInteger) videoBitRate
readwritenonatomicassign

This parameter only takes effect for video streams, and indicates the video bitrate (bps).

◆ videoWidth

- (NSInteger) videoWidth
readwritenonatomicassign

This parameter only takes effect for video streams, and indicates the video width (pixel).

◆ videoHeight

- (NSInteger) videoHeight
readwritenonatomicassign

This parameter only takes effect for video streams, and indicates the video height (pixel).

◆ audioSampleRate

- (NSInteger) audioSampleRate
readwritenonatomicassign

This parameter only takes effect for audio streams, and indicates the audio sample rate (Hz).

◆ audioChannels

- (NSInteger) audioChannels
readwritenonatomicassign

This parameter only takes effect for audio streams, and indicates the audio channel number.

◆ duration

- (NSInteger) duration
readwritenonatomicassign

The total duration (ms) of the media stream.

◆ rotation

- (NSInteger) rotation
readwritenonatomicassign

This parameter only takes effect for video streams, and indicates the video rotation angle.