HXHG
Jump To… Tasks - onCallOutgoing: - onCallReceiveInvite: - onCallConnecting: - onCallConnected: - onCallMemberJoin: - onCallDisconnect:disconnectReason: - onCallMemberLeave:reason: - onCallOtherUserInvited:fromUser: - onCallError: - onCallUserVideoStreamEnabled:byUser:
# JMRTCDelegate Protocol Reference
Conforms to | NSObject |
Declared in | JMRTCDelegate.h |
### – onCallOutgoing:
通话邀请已发出
- (void)onCallOutgoing:(JMRTCSession *)callSession
#### Parameters
#### Discussion
在成功调用 [JMRTCClient startCallUsers:mediaType:handler:] 接口之后,会触发这个回调
#### Declared In
JMRTCDelegate.h
### – onCallReceiveInvite:
收到通话邀请
- (void)onCallReceiveInvite:(JMRTCSession *)callSession
#### Parameters
#### Discussion
被邀请者收到通话邀请,会触发此回调
#### Declared In
JMRTCDelegate.h
### – onCallConnecting:
通话正在连接
- (void)onCallConnecting:(JMRTCSession *)callSession
#### Parameters
#### Discussion
被邀请方调用 [JMRTCSession accept:] 接口之后,会触发此回调
#### Declared In
JMRTCDelegate.h
### – onCallConnected:
通话连接已建立
- (void)onCallConnected:(JMRTCSession *)callSession
#### Parameters
#### Discussion
当被邀请方有任意一方成功调用 [JMRTCSession accept:] 接受邀请后,邀请方和接受方都会触发此回调通知上层通信连接已建立
#### Declared In
JMRTCDelegate.h
### – onCallMemberJoin:
有用户加入通话
- (void)onCallMemberJoin:(JMSGUser *)joinUser
#### Parameters
#### Declared In
JMRTCDelegate.h
### – onCallDisconnect:disconnectReason:
通话断开
- (void)onCallDisconnect:(JMRTCSession *)callSession disconnectReason:(JMRTCDisconnectReason)reason
#### Parameters
callSession |
通话实体对象
|
reason |
断开原因
|
#### Discussion
连接主动断开或异常断开时会触发此回调,断开原因请查看的 JMRTCDisconnectReason
#### Declared In
JMRTCDelegate.h
### – onCallMemberLeave:reason:
有用户离开
- (void)onCallMemberLeave:(JMSGUser *)leaveUser reason:(JMRTCDisconnectReason)reason
#### Parameters
leaveUser |
退出通话的用户的用户信息
|
reason |
退出原因
|
#### Discussion
不管是正在被邀请的用户离开,还是已经加入通话的用户离开,都会触发这个回调
#### Declared In
JMRTCDelegate.h
### – onCallOtherUserInvited:fromUser:
通话过程中,有其他用户被邀请
- (void)onCallOtherUserInvited:(NSArray<__kindofJMSGUser*> *)invitedUsers fromUser:(JMSGUser *)fromUser
#### Parameters
invitedUsers |
被邀请方用户信息集合
|
fromUser |
邀请发起方用户信息
|
#### Declared In
JMRTCDelegate.h
### – onCallError:
通话过程中发生错误
- (void)onCallError:(NSError *)error
#### Parameters
#### Discussion
错误具体情况请查看 error 的错误码和描述信息
#### Declared In
JMRTCDelegate.h
### – onCallUserVideoStreamEnabled:byUser:
远端用户开启/关闭视频流
- (void)onCallUserVideoStreamEnabled:(BOOL)enabled byUser:(JMSGUser *)user
#### Parameters
#### Declared In
JMRTCDelegate.h
Copyright © 2018 HXHG. All rights reserved. Updated: 2018-07-05
Generated by appledoc 2.2.1 (build 1334).