RCCallClient Class Reference
Inherits from | NSObject |
---|---|
Declared in | RCCallClient.h |
+ sharedRCCallClient
获取融云通话能力库CallLib的核心类单例
+ (instancetype)sharedRCCallClient
Return Value
融云通话能力库CallLib的核心类单例
Discussion
获取融云通话能力库CallLib的核心类单例
您可以通过此方法,获取CallLib的单例,访问对象中的属性和方法.
Declared In
RCCallClient.h
– setDelegate:
设置全局通话呼入的监听器
- (void)setDelegate:(id<RCCallReceiveDelegate>)delegate
Parameters
delegate |
CallLib全局通话呼入的监听器 |
---|
Discussion
设置全局通话呼入的监听器
Declared In
RCCallClient.h
– startCall:targetId:to:mediaType:sessionDelegate:extra:
发起一个通话
- (RCCallSession *)startCall:(RCConversationType)conversationType targetId:(NSString *)targetId to:(NSArray *)userIdList mediaType:(RCCallMediaType)type sessionDelegate:(id<RCCallSessionDelegate>)delegate extra:(NSString *)extra
Parameters
conversationType |
会话类型 |
---|---|
targetId |
目标会话ID |
userIdList |
邀请的用户ID列表 |
type |
发起的通话媒体类型 |
delegate |
通话监听 |
extra |
附件信息 |
Return Value
呼出的通话实体
Discussion
发起一个通话
Declared In
RCCallClient.h
– isAudioCallEnabled:
当前会话类型是否支持音频通话
- (BOOL)isAudioCallEnabled:(RCConversationType)conversationType
Parameters
conversationType |
会话类型 |
---|
Return Value
是否支持音频通话
Discussion
当前会话类型是否支持音频通话
Declared In
RCCallClient.h
– isVideoCallEnabled:
当前会话类型是否支持视频通话
- (BOOL)isVideoCallEnabled:(RCConversationType)conversationType
Parameters
conversationType |
会话类型 |
---|
Return Value
是否支持视频通话
Discussion
当前会话类型是否支持视频通话
Declared In
RCCallClient.h
– setVideoProfile:
设置本地视频属性,可用此接口设置本地视频分辨率。
- (void)setVideoProfile:(RCVideoProfile)profile
Parameters
profile |
profile |
---|
Discussion
设置本地视频属性,可用此接口设置本地视频分辨率。
Declared In
RCCallClient.h
– setVideoProfile:swapWidthAndHeight:
设置本地视频属性,可用此接口设置本地视频分辨率,设置宽和高替换
- (void)setVideoProfile:(RCVideoProfile)profile swapWidthAndHeight:(BOOL)swapWidthAndHeight
Parameters
profile |
profile |
---|---|
swapWidthAndHeight |
是否交换宽和高 (默认不交换) |
Discussion
设置本地视频属性,可用此接口设置本地视频分辨率,设置宽和高替换
Declared In
RCCallClient.h
currentCallSession
当前的通话会话实体
@property (nonatomic, strong, readonly) RCCallSession *currentCallSession
Discussion
当前的通话会话实体
Declared In
RCCallClient.h
enableCallSummary
是否生成通话记录消息,默认为YES
@property (nonatomic, assign) BOOL enableCallSummary
Discussion
是否生成通话记录消息,默认为YES
Declared In
RCCallClient.h