#include <NERtcCallKit.h>
◆ onAudioAvailable:userID:
- (void) onAudioAvailable: |
|
(BOOL) | available |
userID: |
|
(NSString *) | userID |
|
optionalrequired |
启用/禁用麦克风
- 参数
-
available | 是否可用 |
userID | 用户userID |
◆ onAudioMuted:userID:
- (void) onAudioMuted: |
|
(BOOL) | muted |
userID: |
|
(NSString *) | userID |
|
optionalrequired |
◆ onCallEnd
◆ onCallingTimeOut
- (void) onCallingTimeOut |
|
|
|
|
optionalrequired |
◆ onCallTypeChange:
◆ onCallTypeChange:withState:
通话类型切换的回调(仅1对1呼叫有效)
- 参数
-
callType | 切换后的类型 |
state | 切换应答类型: 邀请/同意/拒绝 |
◆ onCameraAvailable:userID:
- (void) onCameraAvailable: |
|
(BOOL) | available |
userID: |
|
(NSString *) | userID |
|
optionalrequired |
◆ onDisconnect:
- (void) onDisconnect: |
|
(NSError *) | reason |
|
|
optionalrequired |
◆ onError:
- (void) onError: |
|
(NSError *) | error |
|
|
optionalrequired |
◆ onFirstVideoFrameDecoded:width:height:
- (void) onFirstVideoFrameDecoded: |
|
(NSString *) | userID |
width: |
|
(uint32_t) | width |
height: |
|
(uint32_t) | height |
|
optionalrequired |
首帧解码成功的回调
- 参数
-
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 |
|
optionalrequired |
收到邀请的回调
- 参数
-
invitor | 邀请方 |
userIDs | 房间中的被邀请的所有人(不包含邀请者) |
isFromGroup | 是否是群组 |
groupID | 群组ID |
type | 通话类型 |
◆ onJoinChannel:
◆ onNERtcEngineUser:videoMuted:
- (void) onNERtcEngineUser: |
|
(uint64_t) | userID |
videoMuted: |
|
(BOOL) | muted |
|
optionalrequired |
◆ onNERtcEngineUserVideoDidStartWithUserID:videoProfile:
- (void) onNERtcEngineUserVideoDidStartWithUserID: |
|
(uint64_t) | userID |
videoProfile: |
|
(NERtcVideoProfileType) | profile |
|
optionalrequired |
◆ onOtherClientAccept
- (void) onOtherClientAccept |
|
|
|
|
optionalrequired |
◆ onOtherClientReject
- (void) onOtherClientReject |
|
|
|
|
optionalrequired |
◆ onRtcInitEnd
◆ onUserAccept:
- (void) onUserAccept: |
|
(NSString *) | userID |
|
|
optionalrequired |
◆ onUserBusy:
- (void) onUserBusy: |
|
(NSString *) | userID |
|
|
optionalrequired |
◆ onUserCancel:
- (void) onUserCancel: |
|
(NSString *) | userID |
|
|
optionalrequired |
◆ onUserDisconnect:
- (void) onUserDisconnect: |
|
(NSString *) | userID |
|
|
optionalrequired |
◆ onUserEnter:
- (void) onUserEnter: |
|
(NSString *) | userID |
|
|
optionalrequired |
◆ onUserLeave:
- (void) onUserLeave: |
|
(NSString *) | userID |
|
|
optionalrequired |
◆ onUserNetworkQuality:
- (void) onUserNetworkQuality: |
|
(NSDictionary< NSString *, NERtcNetworkQualityStats * > *) | stats |
|
|
optionalrequired |
网络状态监测回调
- 参数
-
stats | key为用户ID, value为对应网络状态 |
◆ onUserReject:
- (void) onUserReject: |
|
(NSString *) | userID |
|
|
optionalrequired |
◆ onVideoMuted:userID:
- (void) onVideoMuted: |
|
(BOOL) | muted |
userID: |
|
(NSString *) | userID |
|
optionalrequired |
该协议的文档由以下文件生成: