SessionListener

  • The Interface SessionListener monitors all the events from the Session.

  • The SessionListener is created together with the Session instance.

Public Method Summary

Public Method Summary

TypeMethodsParameters

void

onConnected(List<Participant> participants)

Connect to session

  • participants - List of participants in the Session

void

onDisconnected() - Session is disconnected

void

onError(SessionError error) - Receive error message

  • error -Detailed error information

void

onLocalParticipantJoined(final Participant participant) -

local participant is connected to session

  • participant - Participant object representing the local device and media stream with audio and video tracks inside

void

onRemoteParticipantJoined(final Participant participant) -

  • participant - Participant object representing a remote device and media stream with audio and video tracks inside

void

onUpdateParticipant(String participantId, Participant participant)

  • participantId - the unique String value of the participant

  • participant - Participant object representing a remote device

void

onRemoteParticipantLeft(final Participant participant)

  • participantId - the unique String value of the participant

void

onParticipantMediaStateChanged(final String participantId, final MediaConfiguration.MediaType mediaType, final MediaConfiguration.MediaState mediaState) -

This method handle participant's media states

  • participantId - the unique String value of the participant

  • mediaType - Enum of AUDIO, VIDEO, ALL values

  • mediaState - Enum of ENABLED, DISABLED values

void

onMessageReceived(final String participantId, final String message)

The method is receiving messages from remote participants into the current room

  • participantId - the unique String value of the participant

  • message - receiving string messages

Last updated