Project version number for NERtcCallKit.
更多...
#import <NERtcCallKit.h>
Project version number for NERtcCallKit.
Project version string for NERtcCallKit.
◆ onAudioAvailable:userID:
| - (void) onAudioAvailable: |
|
(BOOL) |
available |
| userID: |
|
(NSString *) |
userID |
|
|
| |
|
optional |
启用/禁用麦克风
- 参数
-
| available | 是否可用 |
| userID | 用户userID |
◆ onAudioMuted:userID:
| - (void) onAudioMuted: |
|
(BOOL) |
muted |
| userID: |
|
(NSString *) |
userID |
|
|
| |
|
optional |
◆ onCallTypeChange:
◆ onCallTypeChange:withState:
| - (void) onCallTypeChange: |
|
(NERtcCallType) |
callType |
| withState: |
|
(NERtcSwitchState) |
state |
|
|
| |
|
optional |
通话类型切换的回调(仅1对1呼叫有效)
- 参数
-
| callType | 切换后的类型 |
| state | 切换应答类型: 邀请/同意/拒绝 |
◆ onCameraAvailable:userID:
| - (void) onCameraAvailable: |
|
(BOOL) |
available |
| userID: |
|
(NSString *) |
userID |
|
|
| |
|
optional |
◆ onDisconnect:
| - (void) onDisconnect: |
|
(NSError *) |
reason |
|
|
optional |
◆ onFirstVideoFrameDecoded:width:height:
| - (void) onFirstVideoFrameDecoded: |
|
(NSString *) |
userID |
| width: |
|
(uint32_t) |
width |
| height: |
|
(uint32_t) |
height |
|
|
| |
|
optional |
首帧解码成功的回调
- 参数
-
| userID | 用户id |
| width | 宽度 |
| height | 高度 |
◆ onInvited:userIDs:isFromGroup:groupID:type:
收到邀请的回调
- 参数
-
| invitor | 邀请方 |
| userIDs | 房间中的被邀请的所有人(不包含邀请者) |
| isFromGroup | 是否是群组 |
| groupID | 群组ID |
| type | 通话类型 |
◆ onInvited:userIDs:isFromGroup:groupID:type:attachment:
| - (void) onInvited: |
|
(NSString *) |
invitor |
| userIDs: |
|
(NSArray< NSString * > *) |
userIDs |
| isFromGroup: |
|
(BOOL) |
isFromGroup |
| groupID: |
|
(nullable NSString *) |
groupID |
| type: |
|
(NERtcCallType) |
type |
| attachment: |
|
(nullable NSString *) |
attachment |
|
|
| |
|
optional |
收到邀请的回调
- 参数
-
| invitor | 邀请方 |
| userIDs | 房间中的被邀请的所有人(不包含邀请者) |
| isFromGroup | 是否是群组 |
| groupID | 群组ID |
| type | 通话类型 |
◆ onJoinChannel:
◆ onUserAccept:
| - (void) onUserAccept: |
|
(NSString *) |
userID |
|
|
optional |
◆ onUserBusy:
| - (void) onUserBusy: |
|
(NSString *) |
userID |
|
|
optional |
◆ onUserCancel:
| - (void) onUserCancel: |
|
(NSString *) |
userID |
|
|
optional |
◆ onUserDisconnect:
| - (void) onUserDisconnect: |
|
(NSString *) |
userID |
|
|
optional |
◆ onUserEnter:
| - (void) onUserEnter: |
|
(NSString *) |
userID |
|
|
optional |
◆ onUserLeave:
| - (void) onUserLeave: |
|
(NSString *) |
userID |
|
|
optional |
◆ onUserNetworkQuality:
| - (void) onUserNetworkQuality: |
|
(NSDictionary< NSString *, NERtcNetworkQualityStats * > *) |
stats |
|
|
optional |
网络状态监测回调
- 参数
-
| stats | key为用户ID, value为对应网络状态 |
◆ onUserReject:
| - (void) onUserReject: |
|
(NSString *) |
userID |
|
|
optional |
◆ onVideoMuted:userID:
| - (void) onVideoMuted: |
|
(BOOL) |
muted |
| userID: |
|
(NSString *) |
userID |
|
|
| |
|
optional |
该协议的文档由以下文件生成: