Suggestions

close search

StringeeRoomListener

public interface StringeeRoomListener>



Monitors room's events.



Summary


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.


Public constructors


StringeeRoomListener

StringeeRoomListener()

Creates a new StringeeRoomListener instance.



Public methods


onConnected

void onConnected(StringeeRoom stringeeRoom)

Invoked when connected to room.

Parameters
stringeeRoom

A StringeeRoom instance.



onDisconnected

void onDisconnected(StringeeRoom stringeeRoom)

Invoked when disconnected from room.

Parameters
stringeeRoom

A StringeeRoom instance.



onError

void onError(StringeeRoom stringeeRoom, StringeeError error)

Invoked when connect room error.

Parameters
stringeeRoom

A StringeeRoom instance.

error

A StringeeError instance.



onParticipantConnected

void onParticipantConnected(StringeeRoom stringeeRoom, RemoteParticipant remoteParticipant)

Invoked when new user join room.

Parameters
stringeeRoom

A StringeeRoom instance.

remoteParticipant

A RemoteParticipant instance.



onParticipantDisconnected

void onParticipantDisconnected(StringeeRoom stringeeRoom, RemoteParticipant remoteParticipant)

Invoked when user leave room.

Parameters
stringeeRoom

A StringeeRoom instance.

remoteParticipant

A RemoteParticipant instance.



onVideoTrackAdded

void onVideoTrackAdded(StringeeRoom stringeeRoom, StringeeVideoTrack videoTrack)

Invoked when new video track is added to room.

Parameters
stringeeRoom

A StringeeRoom instance.

videoTrack

A StringeeVideoTrack instance.



onVideoTrackRemoved

void onVideoTrackRemoved(StringeeRoom stringeeRoom, StringeeVideoTrack videoTrack)

Invoked when new video track is removed from room.

Parameters
stringeeRoom

A StringeeRoom instance.

videoTrack

A StringeeVideoTrack instance.



onMessage

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.



onVideoTrackNotification

void onVideoTrackNotification(RemoteParticipant participant, StringeeVideoTrack videoTrack)

Invoked when receive track notification from other user.

Parameters
remoteParticipant

A RemoteParticipant instance.

videoTrack

A StringeeVideoTrack instance.