AgoraRtcMediaStreamInfo
播放器媒体流的所有信息。
Objective-C
__attribute__((visibility("default"))) @interface AgoraMediaStreamInfo : NSObject
@property(nonatomic, assign) NSInteger streamIndex;
@property(nonatomic, assign) AgoraMediaStreamType streamType;
@property(nonatomic, copy) NSString *_Nonnull codecName;
@property(nonatomic, copy) NSString *_Nullable language;
@property(nonatomic, assign) NSInteger videoFrameRate;
@property(nonatomic, assign) NSInteger videoBitRate;
@property(nonatomic, assign) NSInteger videoWidth;
@property(nonatomic, assign) NSInteger videoHeight;
@property(nonatomic, assign) NSInteger audioSampleRate;
@property(nonatomic, assign) NSInteger audioChannels;
@property(nonatomic, assign) NSInteger duration;
@property(nonatomic, assign) NSInteger rotation;
@end
streamIndex
媒体流的索引值。
streamType
此条媒体流的类型。详见 AgoraMediaStreamType
。
codecName
此条媒体流的编码规格。
language
此条媒体流的语言。
videoFrameRate
该参数仅对视频流生效,表示视频帧率 (fps)。
videoBitRate
该参数仅对视频流生效,表示视频码率 (bps)。
videoWidth
该参数仅对视频流生效,表示视频宽度 (pixel)。
videoHeight
该参数仅对视频流生效,表示视频高度 (pixel)。
rotation
该参数仅对视频流生效,表示旋转角度。
audioSampleRate
该参数仅对音频流生效,表示音频采样率 (Hz)。
audioChannels
该参数仅对音频流生效,表示声道数。
duration
媒体流的时长(毫秒)。