public interface StringeeRoomListener>
Monitors room's events.
Public Constructors | |
---|---|
StringeeRoomListener()
Creates a new StringeeRoomListener instance. |
Public methods | |
---|---|
void |
onConnected(StringeeRoom stringeeRoom)
Invoked when connected to room. |
void |
onDisconnected(StringeeRoom stringeeRoom)
Invoked when disconnected from room. |
void |
onError(StringeeRoom stringeeRoom, StringeeError error)
Invoked when connect room error. |
void |
onParticipantConnected(StringeeRoom stringeeRoom, RemoteParticipant remoteParticipant)
Invoked when new user join room. |
void |
onParticipantDisconnected(StringeeRoom stringeeRoom, RemoteParticipant remoteParticipant)
Invoked when user leave room. |
void |
onVideoTrackAdded(StringeeRoom stringeeRoom, StringeeVideoTrack videoTrack)
Invoked when new video track is added to room. |
void |
onVideoTrackRemoved(StringeeRoom stringeeRoom, StringeeVideoTrack videoTrack)
Invoked when video track is removed from room. |
void |
onMessage(StringeeRoom stringeeRoom, JSONObject msg, RemoteParticipant remoteParticipant)
Invoked when receive message in room. |
void |
onVideoTrackNotification(RemoteParticipant participant, StringeeVideoTrack videoTrack)
Invoked when receive track notification from other user. |
StringeeRoomListener()
Creates a new StringeeRoomListener instance.
void onConnected(StringeeRoom stringeeRoom)
Invoked when connected to room.
Parameters | |
---|---|
stringeeRoom |
A StringeeRoom instance. |
void onDisconnected(StringeeRoom stringeeRoom)
Invoked when disconnected from room.
Parameters | |
---|---|
stringeeRoom |
A StringeeRoom instance. |
void onError(StringeeRoom stringeeRoom, StringeeError error)
Invoked when connect room error.
Parameters | |
---|---|
stringeeRoom |
A StringeeRoom instance. |
error |
A StringeeError instance. |
void onParticipantConnected(StringeeRoom stringeeRoom, RemoteParticipant remoteParticipant)
Invoked when new user join room.
Parameters | |
---|---|
stringeeRoom |
A StringeeRoom instance. |
remoteParticipant |
A RemoteParticipant instance. |
void onParticipantDisconnected(StringeeRoom stringeeRoom, RemoteParticipant remoteParticipant)
Invoked when user leave room.
Parameters | |
---|---|
stringeeRoom |
A StringeeRoom instance. |
remoteParticipant |
A RemoteParticipant instance. |
void onVideoTrackAdded(StringeeRoom stringeeRoom, StringeeVideoTrack videoTrack)
Invoked when new video track is added to room.
Parameters | |
---|---|
stringeeRoom |
A StringeeRoom instance. |
videoTrack |
A StringeeVideoTrack instance. |
void onVideoTrackRemoved(StringeeRoom stringeeRoom, StringeeVideoTrack videoTrack)
Invoked when new video track is removed from room.
Parameters | |
---|---|
stringeeRoom |
A StringeeRoom instance. |
videoTrack |
A StringeeVideoTrack instance. |
void onMessage(StringeeRoom stringeeRoom, JSONObject msg, RemoteParticipant remoteParticipant)
Invoked when receive message in room.
Parameters | |
---|---|
stringeeRoom |
A StringeeRoom instance. |
msg |
A message in type JSONObject. |
remoteParticipant |
A RemoteParticipant instance. |
void onVideoTrackNotification(RemoteParticipant participant, StringeeVideoTrack videoTrack)
Invoked when receive track notification from other user.
Parameters | |
---|---|
remoteParticipant |
A RemoteParticipant instance. |
videoTrack |
A StringeeVideoTrack instance. |