public interface RTSChannelStateObserver
Modifier and Type | Method and Description |
---|---|
void |
onChannelEstablished(java.lang.String localSessionId,
RTSTunnelType tunType)
Get notified when a session is established.
|
void |
onConnectResult(java.lang.String localSessionId,
RTSTunnelType tunType,
long channelId,
int code,
java.lang.String recordFile)
Notification for connection results
|
void |
onDisconnectServer(java.lang.String localSessionId,
RTSTunnelType tunType)
Get notified when the session is disconnected.
|
void |
onError(java.lang.String localSessionId,
RTSTunnelType tunType,
int error)
an error occurred in the channel
|
void |
onNetworkStatusChange(java.lang.String localSessionId,
RTSTunnelType channelType,
int value)
Network status changes
|
void |
onUserJoin(java.lang.String localSessionId,
RTSTunnelType tunType,
java.lang.String account)
Get notified when a user joins a session
|
void |
onUserLeave(java.lang.String localSessionId,
RTSTunnelType tunType,
java.lang.String account,
int event)
Get notified when a user leaves the session.
|
void onConnectResult(java.lang.String localSessionId, RTSTunnelType tunType, long channelId, int code, java.lang.String recordFile)
localSessionId
- Local Session IDtunType
- Channel typechannelId
- Channel ID created by the servercode
- Error code. 200 indicates success.recordFile
- URL of the recording filevoid onChannelEstablished(java.lang.String localSessionId, RTSTunnelType tunType)
localSessionId
- tunType
- void onUserJoin(java.lang.String localSessionId, RTSTunnelType tunType, java.lang.String account)
localSessionId
- local Session IDtunType
- Channel typeaccount
- user accountvoid onUserLeave(java.lang.String localSessionId, RTSTunnelType tunType, java.lang.String account, int event)
localSessionId
- local Session IDtunType
- Channel typeaccount
- user accountevent
- void onDisconnectServer(java.lang.String localSessionId, RTSTunnelType tunType)
localSessionId
- local Session IDtunType
- Channel typevoid onError(java.lang.String localSessionId, RTSTunnelType tunType, int error)
localSessionId
- local Session IDtunType
- Channel typeerror
- Error codeRTSError
void onNetworkStatusChange(java.lang.String localSessionId, RTSTunnelType channelType, int value)
localSessionId
- local Session IDchannelType
- channel typevalue
- Value ranges from 0 to 3. The lower value has a better performance