HyphenateSDK  3.1.4
构造函数 | 属性 | 所有成员列表
EMCallSession类 参考
类 EMCallSession 继承关系图:

构造函数

(int) - getVoiceVolume
 
(int) - getVideoTimedelay
 
(int) - getVideoFramerate
 
(int) - getVideoLostcnt
 
(int) - getVideoWidth
 
(int) - getVideoHeight
 
(int) - getVideoRemoteBitrate
 
(int) - getVideoLocalBitrate
 
(void) - takeRemotePicture:
 
(BOOL) - startVideoRecord:
 
(NSString *) - stopVideoRecord
 
(void) - setCameraBackOrFront:
 

属性

NSString * sessionId
 
NSString * username
 
NSString * remoteUsername
 
EMCallType type
 
EMCallConnectType connectType
 
EMCallSessionStatus status
 
EMCallLocalViewlocalVideoView
 
EMCallRemoteViewremoteVideoView
 
int videoBitrate
 

函数文档

- (int) getVideoFramerate

获取视频的帧率,实时变化

返回
视频帧率数值
- (int) getVideoHeight

获取视频的高度,固定值,不会实时变化

返回
视频高度
- (int) getVideoLocalBitrate

获取视频的比特率kbps,实时变化

返回
视频比特率
- (int) getVideoLostcnt

获取视频丢包率

返回
视频丢包率
- (int) getVideoRemoteBitrate

获取视频通话对方的比特率kbps,实时变化

返回
对方比特率
- (int) getVideoTimedelay

获取视频的延迟时间,单位是毫秒,实时变化

返回
视频延迟时间
- (int) getVideoWidth

获取视频的宽度,固定值,不会实时变化

返回
视频宽度
- (int) getVoiceVolume

获取音频音量,实时变化

返回
音量
- (void) setCameraBackOrFront: (BOOL)  isFont

设置使用前置摄像头还是后置摄像头,默认使用前置摄像头

参数
isFont是否使用前置摄像头,YES使用前置,NO使用后置
- (BOOL) startVideoRecord: (NSString *)  aPath

开始录制视频

参数
aPath文件保存路径
- (NSString *) stopVideoRecord

停止录制视频

返回
录制视频的路径
- (void) takeRemotePicture: (NSString *)  aFullPath

获取视频快照

参数
aFullPath图片存储路径

属性说明

- (EMCallConnectType) connectType
readnonatomicassign

连接类型

- (EMCallLocalView*) localVideoView
readwritenonatomicstrong

视频通话时自己的图像显示区域

- (NSString*) remoteUsername
readnonatomicstrong

对方的username

- (EMCallRemoteView*) remoteVideoView
readwritenonatomicstrong

视频通话时对方的图像显示区域

- (NSString*) sessionId
readnonatomicstrong

会话标识符

- (EMCallSessionStatus) status
readnonatomicassign

通话的状态

- (EMCallType) type
readnonatomicassign

通话的类型

- (NSString*) username
readnonatomicstrong

通话本地的username

- (int) videoBitrate
readwritenonatomicassign

设置视频码率,必须在通话开始前设置

码率范围为150-1000, 默认为600


该类的文档由以下文件生成: