AgoraMediaStreamInfo Class Reference

Inherits from NSObject
Declared in AgoraMediaPlayerKit.h

Overview

AgoraMediaStreamInfo 类,包含媒体流的所有信息

  streamIndex

此条媒体流的索引值

@property (nonatomic, assign) NSInteger streamIndex

Declared In

AgoraMediaPlayerKit.h

  streamType

此条媒体流的类型,详见 AgoraMediaStreamType

@property (nonatomic, assign) AgoraMediaStreamType streamType

Declared In

AgoraMediaPlayerKit.h

  codecName

此条媒体流的编码规格

@property (nonatomic, copy) NSString *codecName

Declared In

AgoraMediaPlayerKit.h

  language

此条媒体流的语言

@property (nonatomic, copy) NSString *language

Declared In

AgoraMediaPlayerKit.h

  videoFrameRate

如果此条媒体流是视频流,获取它的视频帧率 (fps)

@property (nonatomic, assign) NSInteger videoFrameRate

Declared In

AgoraMediaPlayerKit.h

  videoBitRate

如果此条媒体流是视频流,获取它的视频码率 (bps)

@property (nonatomic, assign) NSInteger videoBitRate

Declared In

AgoraMediaPlayerKit.h

  videoWidth

如果此条媒体流是视频流,获取它的视频宽度 (pixel)

@property (nonatomic, assign) NSInteger videoWidth

Declared In

AgoraMediaPlayerKit.h

  videoHeight

如果此条媒体流是视频流,获取它的视频高度 (pixel)

@property (nonatomic, assign) NSInteger videoHeight

Declared In

AgoraMediaPlayerKit.h

  audioSampleRate

如果此条媒体流是音频流,获取它的音频采样率 (Hz)

@property (nonatomic, assign) NSInteger audioSampleRate

Declared In

AgoraMediaPlayerKit.h

  audioChannels

如果此条媒体流是音频流,获取它的声道数

@property (nonatomic, assign) NSInteger audioChannels

Declared In

AgoraMediaPlayerKit.h

  duration

此条媒体流的时长 (秒)

@property (nonatomic, assign) NSInteger duration

Declared In

AgoraMediaPlayerKit.h

  rotation

如果此条媒体流是视频流,获取它的旋转角度

@property (nonatomic, assign) NSInteger rotation

Declared In

AgoraMediaPlayerKit.h