RTS通道状态观察者
更多...
|
void | onConnectResult (String localSessionId, RTSTunnelType tunType, long channelId, int code, String recordFile) |
| 与服务器连接结果通知 更多...
|
|
void | onChannelEstablished (String localSessionId, RTSTunnelType tunType) |
| 会话建立 更多...
|
|
void | onUserJoin (String localSessionId, RTSTunnelType tunType, String account) |
| 用户加入 更多...
|
|
void | onUserLeave (String localSessionId, RTSTunnelType tunType, String account, int event) |
| 用户离开 更多...
|
|
void | onDisconnectServer (String localSessionId, RTSTunnelType tunType) |
| 与服务器断开连接 更多...
|
|
void | onError (String localSessionId, RTSTunnelType tunType, int error) |
| 通道发生错误 更多...
|
|
void | onNetworkStatusChange (String localSessionId, RTSTunnelType channelType, int value) |
| 网络状态发生变化 更多...
|
|
◆ onChannelEstablished()
void com.netease.nimlib.sdk.rts.RTSChannelStateObserver.onChannelEstablished |
( |
String |
localSessionId, |
|
|
RTSTunnelType |
tunType |
|
) |
| |
◆ onConnectResult()
void com.netease.nimlib.sdk.rts.RTSChannelStateObserver.onConnectResult |
( |
String |
localSessionId, |
|
|
RTSTunnelType |
tunType, |
|
|
long |
channelId, |
|
|
int |
code, |
|
|
String |
recordFile |
|
) |
| |
与服务器连接结果通知
- 参数
-
localSessionId | 本地 Session ID |
tunType | 通道类型 |
channelId | 服务器创建的频道ID |
code | 错误码,成功默认200 |
recordFile | 服务器录制文件地址 |
◆ onDisconnectServer()
void com.netease.nimlib.sdk.rts.RTSChannelStateObserver.onDisconnectServer |
( |
String |
localSessionId, |
|
|
RTSTunnelType |
tunType |
|
) |
| |
与服务器断开连接
- 参数
-
localSessionId | 本地 Session ID |
tunType | 通道类型 |
◆ onError()
void com.netease.nimlib.sdk.rts.RTSChannelStateObserver.onError |
( |
String |
localSessionId, |
|
|
RTSTunnelType |
tunType, |
|
|
int |
error |
|
) |
| |
◆ onNetworkStatusChange()
void com.netease.nimlib.sdk.rts.RTSChannelStateObserver.onNetworkStatusChange |
( |
String |
localSessionId, |
|
|
RTSTunnelType |
channelType, |
|
|
int |
value |
|
) |
| |
网络状态发生变化
- 参数
-
localSessionId | 本地 Session ID |
channelType | 通道类型 |
value | 0-3,值越小信号越好,0:最好,3:最差 |
◆ onUserJoin()
void com.netease.nimlib.sdk.rts.RTSChannelStateObserver.onUserJoin |
( |
String |
localSessionId, |
|
|
RTSTunnelType |
tunType, |
|
|
String |
account |
|
) |
| |
用户加入
- 参数
-
localSessionId | 本地 Session ID |
tunType | 通道类型 |
account | 用户账号 |
◆ onUserLeave()
void com.netease.nimlib.sdk.rts.RTSChannelStateObserver.onUserLeave |
( |
String |
localSessionId, |
|
|
RTSTunnelType |
tunType, |
|
|
String |
account, |
|
|
int |
event |
|
) |
| |
用户离开
- 参数
-
localSessionId | 本地 Session ID |
tunType | 通道类型 |
account | 用户账号 |
event | |
该接口的文档由以下文件生成: