public interface RTSChannelStateObserver
限定符和类型 | 方法和说明 |
---|---|
void |
onChannelEstablished(java.lang.String localSessionId,
RTSTunnelType tunType)
会话建立
|
void |
onConnectResult(java.lang.String localSessionId,
RTSTunnelType tunType,
long channelId,
int code,
java.lang.String recordFile)
与服务器连接结果通知
|
void |
onDisconnectServer(java.lang.String localSessionId,
RTSTunnelType tunType)
与服务器断开连接
|
void |
onError(java.lang.String localSessionId,
RTSTunnelType tunType,
int error)
通道发生错误
|
void |
onNetworkStatusChange(java.lang.String localSessionId,
RTSTunnelType channelType,
int value)
网络状态发生变化
|
void |
onUserJoin(java.lang.String localSessionId,
RTSTunnelType tunType,
java.lang.String account)
用户加入
|
void |
onUserLeave(java.lang.String localSessionId,
RTSTunnelType tunType,
java.lang.String account,
int event)
用户离开
|
void onConnectResult(java.lang.String localSessionId, RTSTunnelType tunType, long channelId, int code, java.lang.String recordFile)
localSessionId
- 本地 Session IDtunType
- 通道类型channelId
- 服务器创建的频道IDcode
- 错误码,成功默认200recordFile
- 服务器录制文件地址void onChannelEstablished(java.lang.String localSessionId, RTSTunnelType tunType)
localSessionId
- tunType
- void onUserJoin(java.lang.String localSessionId, RTSTunnelType tunType, java.lang.String account)
localSessionId
- 本地 Session IDtunType
- 通道类型account
- 用户账号void onUserLeave(java.lang.String localSessionId, RTSTunnelType tunType, java.lang.String account, int event)
localSessionId
- 本地 Session IDtunType
- 通道类型account
- 用户账号event
- void onDisconnectServer(java.lang.String localSessionId, RTSTunnelType tunType)
localSessionId
- 本地 Session IDtunType
- 通道类型void onError(java.lang.String localSessionId, RTSTunnelType tunType, int error)
localSessionId
- 本地 Session IDtunType
- 通道类型error
- 错误码RTSError
void onNetworkStatusChange(java.lang.String localSessionId, RTSTunnelType channelType, int value)
localSessionId
- 本地 Session IDchannelType
- 通道类型value
- 0-3,值越小信号越好,0:最好,3:最差