JCSDK-iOS
|
访客模块 更多...
#import <JCGuest.h>
构造函数 | |
(bool) | - queryAllGroups |
(bool) | - call:callParams: |
(bool) | - oneToOneCall:callParams: |
(bool) | - setRatio: |
(bool) | - setScreenMode: |
(void) | - setRequestSize: |
(bool) | - term |
(bool) | - enableAudio: |
(bool) | - enableVideo: |
(bool) | - sendVideoEmptyPack: |
(bool) | - sendAudioEmptyPack: |
(bool) | - enableScreenShare: |
(bool) | - requestVideo:pictureSize: |
(bool) | - requestUrgent |
(bool) | - enableLocalRecord:path: |
(bool) | - enableLocalRecord:recordParam: |
(bool) | - enableRemoteRecord:recordParam: |
(bool) | - sendMessage:content: |
(bool) | - sendMessage:content:toUserId: |
(bool) | - insertStorageRecord:fileType:fileSize:expireTime: |
(bool) | - setLineUpTag: |
(bool) | - getHoldState |
(void) | - turnCallType: |
(JCGuestCallType) | - getCallType |
(void) | - sendTextMessage:toUserId: |
类方法 | |
(JCGuest *) | + create:mediaDevice:callback: |
(void) | + destroy |
属性 | |
JCGuestCallState | callState |
当前通话状态 | |
JCMediaChannelParticipant * | agentParticipant |
通话中可以取得正在通话的座席对象 | |
NSArray< JCMediaChannelParticipant * > * | participants |
通话中的所有成员 | |
NSString * | statistics |
媒体统计信息 | |
NSString * | shareRenderId |
屏幕共享时的渲染id,无屏幕共享时为空 | |
NSString * | shareUserId |
屏幕共享时的共享成员id,无屏幕共享时为空 | |
int | spkLevel |
当前扬声器音量级别 | |
int | micLevel |
当前本地记录音量级别 | |
NSString * | serialNumber |
服务唯一标识,上层可使用该参数通过portal第三方接口查询到话务信息,如录制视频文件的URL | |
访客模块
- (bool) call: | (NSString *) | number | |
callParams: | (JCGuestCallParam *) | callParam | |
+ (JCGuest *) create: | (JCClient *) | client | |
mediaDevice: | (JCMediaDevice *) | mediaDevice | |
callback: | (id<JCGuestCallback>) | callback | |
创建 JCGuest 对象,为单例,重复调用返回同一对象
client | JCClient 对象 |
mediaDevice | JCMediaDevice 对象 |
callback | JCGuestCallback 回调 |
+ (void) destroy |
- (bool) enableAudio: | (bool) | enable |
- (bool) enableLocalRecord: | (bool) | enable | |
path: | (NSString *) | path | |
本地录制
enable | 开启关闭 |
path | 录制路径 |
- (bool) enableLocalRecord: | (bool) | enable | |
recordParam: | (JCMediaChannelRecordLocalParams *) | recordParam | |
本地录制
enable | 开启关闭 |
recordParam | 录制参数对象 |
- (bool) enableRemoteRecord: | (bool) | enable | |
recordParam: | (JCMediaChannelRecordRemoteParams*) | recordParam | |
开关远程视频录制
enable | 是否开启屏幕录制 |
recordParam | recordParam 录制参数,当 enable 为 true 时,可以更改由 join 时传入的录制参数,不需更改则填 null |
- (bool) enableScreenShare: | (bool) | enable |
- (bool) enableVideo: | (bool) | enable |
- (JCGuestCallType) getCallType |
- (bool) getHoldState |
当前通话是否保持
- (bool) insertStorageRecord: | (NSString *) | url | |
fileType: | (JCGuestStorageFileType) | fileType | |
fileSize: | (int) | fileSize | |
expireTime: | (int) | expireTime | |
把文件绑定到当前的服务,以便通过 portal 查看文件
url | 文件路径,在文件通过uploadFile上传至文件服务后,由onFileResult返回 |
fileType | 文件类型 |
fileSize | 文件大小 |
expireTime | 超时时间 |
- (bool) oneToOneCall: | (NSString *) | number | |
callParams: | (JCGuestCallParam *) | callParam | |
呼叫到指定坐席
number | 坐席 id,如agent1 |
callParam | 参数设置,可以设置通话分辨率、全局宽高比等参数 |
- (bool) queryAllGroups |
查询业务组号,结果通过onGetAllGroups上报
- (bool) requestUrgent |
- (bool) requestVideo: | (JCMediaChannelParticipant *) | participant | |
pictureSize: | (JCMediaChannelPictureSize) | pictureSize | |
按设置的尺寸请求指定成员的视频画面 当 pictureSize 为 JCMediaChannelPictureSizeNone 表示关闭请求
participant | 频道中其他成员对象 |
pictureSize | 请求大小 |
- (bool) sendAudioEmptyPack: | (bool) | empty |
- (bool) sendMessage: | (NSString *) | type | |
content: | (NSString *) | content | |
- (bool) sendMessage: | (NSString *) | type | |
content: | (NSString *) | content | |
toUserId: | (nullable NSString *) | userId | |
透明通道发送消息给某个成员,UserId传空则发送给所有成员,消息内容不能大于4K
type | 消息类型 |
content | 消息内容 userId 不为null时,content 不能大于4k |
userId | 对象id |
- (void) sendTextMessage: | (NSString *) | content | |
toUserId: | (NSString *) | userId | |
- (bool) sendVideoEmptyPack: | (bool) | empty |
- (bool) setLineUpTag: | (JCGuestTagType) | tagType |
设置排队标签
tagType | 排队标签 |
- (bool) setRatio: | (float) | ratio |
设置视频本地宽高比,会将自己的视频采集根据宽高比裁剪后进行发送
ratio | 视频本地宽高比 |
- (void) setRequestSize: | (JCMediaChannelPictureSize) | size |
设置视频请求尺寸
size | 尺寸 |
- (bool) setScreenMode: | (JCMediaChannelConfMergeModeParam *) | param |
设置分屏模式
param | 媒体推流的视频合并模式参数 |
- (bool) term |
结束通话
- (void) turnCallType: | (JCGuestCallType) | calltype |
音视频通话切换
calltype |
|