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

构造函数

(EMError *) - pauseVoice
 
(EMError *) - resumeVoice
 
(EMError *) - pauseVideo
 
(EMError *) - resumeVideo
 
(void) - switchCameraPosition:
 
(NSString *sessionId) - EM_DEPRECATED_IOS
 
(NSString *username) - EM_DEPRECATED_IOS
 
(NSString *remoteUsername) - EM_DEPRECATED_IOS
 
(int videoBitrate) - EM_DEPRECATED_IOS
 
(3_1_0, 3_1_5,"Delete") - EM_DEPRECATED_IOS
 
(3_1_0, 3_1_5,"Use -EMCallSession.videoLatency") - EM_DEPRECATED_IOS
 
(3_1_0, 3_1_5,"Use -EMCallSession.remoteVideoFrameRate") - EM_DEPRECATED_IOS
 
(3_1_0, 3_1_5,"Use -EMCallSession.remoteVideoLostRateInPercent") - EM_DEPRECATED_IOS
 
(3_1_0, 3_1_5,"Use -EMCallSession.remoteVideoResolution") - EM_DEPRECATED_IOS
 
(3_1_0, 3_1_5,"Use -EMCallSession.remoteVideoResolution") - EM_DEPRECATED_IOS
 
(3_1_0, 3_1_5,"Use -EMCallSession.remoteVideoBitrate") - EM_DEPRECATED_IOS
 
(3_1_0, 3_1_5,"Use -EMCallSession.localVideoBitrate") - EM_DEPRECATED_IOS
 
(void) - screenCaptureToFilePath:error:
 
(void) - startVideoRecordingToFilePath:error:
 
(NSString *) - stopVideoRecording:
 
("Use -getVideoLatency") - __deprecated_msg
 
("Use -getVideoFrameRate") - __deprecated_msg
 
("Use -getVideoLostRateInPercent") - __deprecated_msg
 
(void) - takeRemotePicture:
 
(BOOL) - startVideoRecord:
 
("Use -stopVideoRecording:") - __deprecated_msg
 
(void) - setCameraBackOrFront:
 

属性

NSString * callId
 
NSString * localName
 
EMCallType type
 
BOOL isCaller
 
NSString * remoteName
 
EMCallSessionStatus status
 
EMCallLocalViewlocalVideoView
 
EMCallRemoteViewremoteVideoView
 
EMCallConnectType connectType
 
int videoLatency
 
int localVideoFrameRate
 
int remoteVideoFrameRate
 
int localVideoBitrate
 
int remoteVideoBitrate
 
int localVideoLostRateInPercent
 
int remoteVideoLostRateInPercent
 
CGSize remoteVideoResolution
 
NSString * ext
 

函数文档

- ("Use -getVideoLatency") __deprecated_msg

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

返回
视频延迟时间
- ("Use -getVideoFrameRate") __deprecated_msg

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

返回
视频帧率数值
- ("Use -getVideoLostRateInPercent") __deprecated_msg

获取视频丢包率

返回
视频丢包率

停止录制视频

返回
录制视频的路径
- (NSString* sessionId) EM_DEPRECATED_IOS (3_1_0) 
(3_1_5) 
("Use EMCallSession.callId")   

会话标识符

- (NSString* username) EM_DEPRECATED_IOS (3_1_0) 
(3_1_5) 
("Use EMCallSession.localName")   

通话本地的username

- (NSString* remoteUsername) EM_DEPRECATED_IOS (3_1_0) 
(3_1_5) 
("Use EMCallSession.remoteName")   

对方的username

- (3_1_0, 3_1_5, "Use -EMCallSession.videoLatency") EM_DEPRECATED_IOS

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

返回
视频延迟时间
- (int videoBitrate) EM_DEPRECATED_IOS (3_1_0) 
(3_1_5) 
("Use EMCallOptions.videoKbps")   

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

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

- (3_1_0, 3_1_5, "Use -EMCallSession.remoteVideoBitrate") EM_DEPRECATED_IOS

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

返回
对方比特率
- (3_1_0, 3_1_5, "Use -EMCallSession.localVideoBitrate") EM_DEPRECATED_IOS

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

返回
视频比特率
- (3_1_0, 3_1_5, "Delete") EM_DEPRECATED_IOS

获取音频音量,实时变化

返回
音量
- (3_1_0, 3_1_5, "Use -EMCallSession.remoteVideoLostRateInPercent") EM_DEPRECATED_IOS

获取视频丢包率

返回
视频丢包率
- (3_1_0, 3_1_5, "Use -EMCallSession.remoteVideoResolution") EM_DEPRECATED_IOS

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

返回
视频高度
- (3_1_0, 3_1_5, "Use -EMCallSession.remoteVideoFrameRate") EM_DEPRECATED_IOS

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

返回
视频帧率数值
- (3_1_0, 3_1_5, "Use -EMCallSession.remoteVideoResolution") EM_DEPRECATED_IOS

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

返回
视频宽度
- (EMError *) pauseVideo

暂停视频图像数据传输

返回
错误
- (EMError *) pauseVoice

暂停语音数据传输

返回
错误
- (EMError *) resumeVideo

恢复视频图像数据传输

返回
错误
- (EMError *) resumeVoice

恢复语音数据传输

返回
错误
- (void) screenCaptureToFilePath: (NSString *)  aPath
error: (3_1_0) 
(3_1_5) 
("Use -")  EM_DEPRECATED_IOS[EMPluginVideoRecorder screenCaptureToFilePath:error:] 

获取视频快照,只支持JPEG格式

参数
aPath图片存储路径
- (void) setCameraBackOrFront: ("Use -switchCameraPosition:")  __deprecated_msg

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

参数
isFont是否使用前置摄像头,YES使用前置,NO使用后置
- (BOOL) startVideoRecord: ("Use startVideoRecordingToFilePath:error:")  __deprecated_msg

开始录制视频

参数
aPath文件保存路径
- (void) startVideoRecordingToFilePath: (NSString *)  aPath
error: (3_1_0) 
(3_1_5) 
("Use -")  EM_DEPRECATED_IOS[EMPluginVideoRecorder startVideoRecordingToFilePath:error] 

开始录制视频

参数
aPath文件保存路径
aError错误
- (NSString *) stopVideoRecording: (3_1_0) 
(3_1_5) 
("Use -")  EM_DEPRECATED_IOS[EMPluginVideoRecorder stopVideoRecording:] 

停止录制视频

参数
aError错误
- (void) switchCameraPosition: (BOOL)  aIsFrontCamera

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

参数
aIsFrontCamera是否使用前置摄像头, YES使用前置, NO使用后置
- (void) takeRemotePicture: ("Use -screenCaptureToFilePath:")  __deprecated_msg

获取视频快照

参数
aFullPath图片存储路径

属性说明

- (NSString*) callId
readnonatomicstrong

会话标识符

- (EMCallConnectType) connectType
readnonatomicassign

连接类型

- (NSString*) ext
readnonatomicassign

消息扩展

类型必须是NSString

- (BOOL) isCaller
readnonatomicassign

主叫还是被叫

- (NSString*) localName
readnonatomicstrong

通话本地的username

- (int) localVideoBitrate
readnonatomicassign

本地视频通话对方的比特率kbps,实时变化 未获取到返回-1

- (int) localVideoFrameRate
readnonatomicassign

本地视频的帧率,实时变化 未获取到返回-1

- (int) localVideoLostRateInPercent
readnonatomicassign

本地视频丢包率,实时变化 未获取到返回-1

- (EMCallLocalView*) localVideoView
readwritenonatomicstrong

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

- (NSString*) remoteName
readnonatomicstrong

对方的username

- (int) remoteVideoBitrate
readnonatomicassign

对方视频通话对方的比特率kbps,实时变化 未获取到返回-1

- (int) remoteVideoFrameRate
readnonatomicassign

对方视频的帧率,实时变化 未获取到返回-1

- (int) remoteVideoLostRateInPercent
readnonatomicassign

对方视频丢包率,实时变化 未获取到返回-1

- (CGSize) remoteVideoResolution
readnonatomicassign

对方视频分辨率 未获取到返回 (-1,-1)

- (EMCallRemoteView*) remoteVideoView
readwritenonatomicstrong

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

- (EMCallSessionStatus) status
readnonatomicassign

通话的状态

- (EMCallType) type
readnonatomicassign

通话的类型

- (int) videoLatency
readnonatomicassign

视频的延迟时间,单位是毫秒,实时变化 未获取到返回-1


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