NIMRTSManagerDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | NIMRTSManagerProtocol.h |
– onRTSRequest:from:services:message:
被叫收到实时会话请求
- (void)onRTSRequest:(NSString *)sessionID from:(NSString *)caller services:(NSUInteger)types message:(nullable NSString *)extendMessage
Parameters
sessionID |
实时会话ID |
---|---|
caller |
主叫帐号 |
types |
服务类型, NIMRTSService的组合 |
extendMessage |
附加信息 |
Discussion
被叫收到实时会话请求
Declared In
NIMRTSManagerProtocol.h
– onRTSResponse:from:accepted:
主叫收到被叫实时会话响应
- (void)onRTSResponse:(NSString *)sessionID from:(NSString *)callee accepted:(BOOL)accepted
Parameters
sessionID |
实时会话ID |
---|---|
callee |
被叫帐号 |
accepted |
是否接听 |
Discussion
主叫收到被叫实时会话响应
被叫拒绝接听时, 主叫不需要再调用termimateRTS:接口
Declared In
NIMRTSManagerProtocol.h
– onRTSTerminate:by:
对方结束实时会话
- (void)onRTSTerminate:(NSString *)sessionID by:(NSString *)user
Parameters
sessionID |
实时会话ID |
---|---|
user |
对方帐号 |
Discussion
对方结束实时会话
Declared In
NIMRTSManagerProtocol.h
– onRTSResponsedByOther:accepted:
这通呼入的实时会话请求已经被该帐号其他端处理
- (void)onRTSResponsedByOther:(NSString *)sessionID accepted:(BOOL)accepted
Parameters
sessionID |
实时会话ID |
---|---|
accepted |
是否被接听 |
Discussion
这通呼入的实时会话请求已经被该帐号其他端处理
Declared In
NIMRTSManagerProtocol.h
– onRTS:service:status:error:
实时会话状态反馈
- (void)onRTS:(NSString *)sessionID service:(NIMRTSService)type status:(NIMRTSStatus)status error:(nullable NSError *)error
Parameters
sessionID |
实时会话ID |
---|---|
type |
实时会话服务类型 |
status |
通话状态, 收到NIMRTSStatusDisconnect时无需调用terminate:结束该会话 |
error |
出错信息, 正常连接和断开时为nil |
Discussion
实时会话状态反馈
Declared In
NIMRTSManagerProtocol.h
– onRTSReceive:data:from:withIn:
收到实时会话数据
- (void)onRTSReceive:(NSString *)sessionID data:(NSData *)data from:(NSString *)user withIn:(NIMRTSService)channel
Parameters
sessionID |
实时会话ID |
---|---|
data |
收到的实时会话数据 |
user |
发送实时会话数据的用户 |
channel |
收发实时数据的服务通道 |
Discussion
收到实时会话数据
Declared In
NIMRTSManagerProtocol.h
– onRTSControl:from:forSession:
收到实时会话控制信息
- (void)onRTSControl:(NSString *)controlInfo from:(NSString *)user forSession:(NSString *)sessionID
Parameters
controlInfo |
控制信息 |
---|---|
user |
发送指令的用户 |
sessionID |
实时会话ID |
Discussion
收到实时会话控制信息
Declared In
NIMRTSManagerProtocol.h
– onRTSRecordingInfo:forSession:
实时会话录制信息
- (void)onRTSRecordingInfo:(NIMRTSRecordingInfo *)info forSession:(NSString *)sessionID
Parameters
info |
录制信息 |
---|---|
sessionID |
实时会话ID |
Discussion
实时会话录制信息
Declared In
NIMRTSManagerProtocol.h
– onRTSAudioNetStatus:user:
语音网络状态
- (void)onRTSAudioNetStatus:(NIMNetCallNetStatus)status user:(NSString *)user
Parameters
status |
网络状态 |
---|---|
user |
网络状态对应的用户;如果是自己,表示自己的发送网络状态 |
Discussion
语音网络状态
Declared In
NIMRTSManagerProtocol.h