JCSDK Objective-C API Reference for iOS/macOS
2.5.1
|
构造函数 | |
(NSString *__nonnull) | - toString |
(JCMediaDeviceVideoCanvas *__nullable) | - startSelfVideo: |
(void) | - stopSelfVideo |
(JCMediaDeviceVideoCanvas *__nullable) | - startOtherVideo: |
(void) | - stopOtherVideo |
属性 | |
NSString *__nonnull | userId |
NSString *__nullable | displayName |
NSString *__nonnull | renderId |
JCCallDirection | direction |
bool | video |
long | beginTime |
long | talkingBeginTime |
JCCallState | state |
bool | hold |
bool | held |
bool | mute |
bool | audioRecord |
NSString *__nullable | audioRecordFilePath |
bool | localVideoRecord |
NSString *__nullable | localVideoRecordFilePath |
bool | remoteVideoRecord |
NSString *__nullable | remoteVideoRecordFilePath |
NSString *__nullable | audioOutputType |
bool | active |
bool | uploadVideoStreamSelf |
bool | uploadVideoStreamOther |
JCCallReason | reason |
JCCallNetWork | audioNetSendStatus |
JCCallNetWork | audioNetReceiveStatus |
JCCallNetWork | videoNetSendStatus |
JCCallNetWork | videoNetReceiveStatus |
NSString *__nullable | extraParam |
NSString *__nullable | serverCallId |
bool | otherAudioInterrupt |
NSString *__nullable | ticket |
通话对象,此类主要记录通话的一些状态,UI可以根据其中的状态进行更新
- (JCMediaDeviceVideoCanvas* __nullable) startOtherVideo: | (JCMediaDeviceRender) | type |
启动对端视频渲染
type | 渲染模式:
|
- (JCMediaDeviceVideoCanvas* __nullable) startSelfVideo: | (JCMediaDeviceRender) | type |
启动自身视频渲染
type | 渲染模式:
|
- (void) stopOtherVideo |
停止对端视频渲染
- (void) stopSelfVideo |
停止自身视频渲染
- (NSString* __nonnull) toString |
字符串信息
|
readnonatomicassign |
是否激活状态,会议通话时忽略此参数
|
readnonatomicassign |
音频接收网络状态
|
readnonatomicassign |
音频发送网络状态
|
readnonatomiccopy |
音频输出类型,根据类型判断是听筒,耳机,麦克风等
|
readnonatomicassign |
此路通话是否为录音状态
|
readnonatomiccopy |
录音文件的保存路径
|
readnonatomicassign |
通话建立时间戳,单位秒
|
readnonatomicassign |
通话方向(呼入或呼出)
|
readwritenonatomiccopy |
用户昵称
|
readnonatomiccopy |
|
readnonatomicassign |
此路通话是否为被挂起状态
|
readnonatomicassign |
此路通话是否为挂起状态
|
readnonatomicassign |
是否在录制本端视频
|
readnonatomiccopy |
本端视频录制文件的保存路径
|
readnonatomicassign |
此路通话是否为静音状态
|
readnonatomicassign |
对端声音是否中断
|
readnonatomicassign |
获取通话结束原因
通话结束原因,参见 JCCall 结束原因
|
readnonatomicassign |
是否在录制远端视频
|
readnonatomiccopy |
获取远端视频录制文件的保存路径
|
readnonatomiccopy |
渲染标识
此属性原本用于 startVideo 渲染其他端视频使用,现在可以直接调用 startOtherVideo 方法来渲染其他端视频
|
readnonatomiccopy |
获取服务端唯一通话CallId
可以用来通话去重,如果为空字符串则不能通过此字段来去重,说明此通话还未到服务器
|
readnonatomicassign |
获取通话状态
通话状态,参见:
|
readnonatomicassign |
通话开始时间戳,单位秒
|
readnonatomicassign |
|
readnonatomicassign |
获取对端是否在上传视频流
对端是否在上传视频流
|
readnonatomicassign |
获取本端是否在上传视频流
本端是否在上传视频流
|
readnonatomiccopy |
用户标识
|
readnonatomicassign |
是否为视频通话
|
readnonatomicassign |
视频接收网络状态
|
readnonatomicassign |
视频发送网络状态