public class RemonObserver
extends java.lang.Object
Constructor and Description |
---|
RemonObserver() |
Modifier and Type | Method and Description |
---|---|
RemonContext |
getRecon() |
Remon |
getRemon() |
void |
onAddLocalStream(MediaStream mediaStream)
Occurs when media such as a camera or a microphone of the user's own device operates to start input.
|
void |
onAddRemoteStream(MediaStream mediaStream)
Occurs when a connection is made with the opposing party and the media stream of the other party begins to be input
|
void |
onClose()
Called when the current remon object actually closes when it closes.
|
void |
onConnectChannel(Channel channel)
Occurs when connected with the opposing party.
|
void |
onCreateChannel(Channel channel)
Occurs when channel creation is complete
|
void |
onDisconnectChannel(java.lang.String body)
Occurs when the other party disconnects.
|
void |
onError(RemonException e)
Remon Event for all errors that occur during broadcast or communication
|
void |
onInit(java.lang.String token)
Remon Occurs when the server is connected.
|
void |
onMessage(java.lang.String msg)
Messages that can be received when the remote party calls the Remon.sendMessage () method
|
void |
onMessage(java.lang.String code,
java.lang.String msg)
Messages received from the other end by sendMessage
|
void |
onSearchChannels(java.util.List<Channel> channels)
Search result is called
|
void |
onSearchRooms(java.util.List<Room> rooms) |
void |
onStateChange(RemonState state)
Called for each step for 5 steps of communication process.
|
void |
onStatReport(RemonStatReport report)
Receive reports on communication status
|
void |
setPeerConnectionManager(PeerConnectionManager pcm) |
void |
setRecon(RemonContext ctx) |
void |
setRemon(Remon remon) |
public void setRemon(Remon remon)
public Remon getRemon()
public void setRecon(RemonContext ctx)
public RemonContext getRecon()
public void onInit(java.lang.String token)
token
- public void onConnectChannel(Channel channel)
channel
- Returns the information of the connected channelpublic void onCreateChannel(Channel channel)
channel
- public void onAddLocalStream(MediaStream mediaStream)
mediaStream
- public void onAddRemoteStream(MediaStream mediaStream)
mediaStream
- public void onStateChange(RemonState state)
state
- public void onMessage(java.lang.String code, java.lang.String msg)
code
- msg
- public void onSearchChannels(java.util.List<Channel> channels)
channels
- public void onSearchRooms(java.util.List<Room> rooms)
public void onDisconnectChannel(java.lang.String body)
body
- The id of the broken channel is passed.public void onClose()
public void onError(RemonException e)
e
- public void onStatReport(RemonStatReport report)
report
- public void setPeerConnectionManager(PeerConnectionManager pcm)
public void onMessage(java.lang.String msg)
msg
-