-
- All Implemented Interfaces:
public interface SessionEventListener
General listener to for events happening during session All callbacks are executed on Main Thread
-
-
Method Summary
Modifier and Type Method Description Unit
onParticipantJoined(Participant participant)
Notifies about new participant joined the call. Unit
onParticipantLeft(Participant participant)
Notifies about participant disconnecting the call. Unit
onParticipantVideoCreated(Participant participant, VideoElement video)
Notifies about remote participant started new video stream Unit
onParticipantVideoStopped(Participant participant, ScreenMeet.VideoSource source)
Notifies about remote participant stopped his video stream Unit
onParticipantAudioCreated(Participant participant)
Notifies about remote participant started new audio stream Unit
onParticipantAudioStopped(Participant participant)
Notifies about remote participant stopped his audio stream Unit
onActiveSpeakerChanged(Participant participant, VideoElement video)
Called when Participant marked as active by server. Unit
onLocalVideoCreated(ScreenMeet.VideoSource source, VideoElement video)
Used as a success callback when a local video source started sharing Unit
onLocalVideoStopped(ScreenMeet.VideoSource source)
Used when a local video source stopped sharing or notifies about failed attempt to share Unit
onLocalAudioCreated()
Used as a success callback when a local audio source started sharing Unit
onLocalAudioStopped()
Used when a local video source stopped sharing or notifies about failed attempt to share Unit
onConnectionStateChanged(ScreenMeet.ConnectionState newState)
Called when session connection state changed Unit
onChatMessage(ChatMessage chatMessage)
Notifies about new message received from server or own message delivery status update Unit
onFeatureRequest(Feature feature, Function1<Boolean, Unit> decisionHandler)
Called when entitlement requested Unit
onFeatureRequestRejected(Entitlement entitlement)
Called when previous request was rejected Unit
onFeatureStarted(Feature feature)
Called when certain feature (you approved) starts its activity (remote control, laser pointer) Unit
onFeatureStopped(Feature feature)
Called when entitlement stopped -
-
Method Detail
-
onParticipantJoined
Unit onParticipantJoined(Participant participant)
Notifies about new participant joined the call.
- Parameters:
participant
-Participant details with audio/video tracks
-
onParticipantLeft
Unit onParticipantLeft(Participant participant)
Notifies about participant disconnecting the call.
- Parameters:
participant
-Participant details with audio/video tracks
-
onParticipantVideoCreated
Unit onParticipantVideoCreated(Participant participant, VideoElement video)
Notifies about remote participant started new video stream
- Parameters:
participant
-latest state of Participant with details and audio/video tracks
video
-VideoTrack wrapper for UI presentation
-
onParticipantVideoStopped
Unit onParticipantVideoStopped(Participant participant, ScreenMeet.VideoSource source)
Notifies about remote participant stopped his video stream
- Parameters:
participant
-latest state of Participant with details and audio/video tracks
source
-VideoSource which was stopped
-
onParticipantAudioCreated
Unit onParticipantAudioCreated(Participant participant)
Notifies about remote participant started new audio stream
- Parameters:
participant
-latest state of Participant with details and audio/video tracks
-
onParticipantAudioStopped
Unit onParticipantAudioStopped(Participant participant)
Notifies about remote participant stopped his audio stream
- Parameters:
participant
-latest state of Participant with details and audio/video tracks
-
onActiveSpeakerChanged
Unit onActiveSpeakerChanged(Participant participant, VideoElement video)
Called when Participant marked as active by server. Usually when somebody starts screen share
- Parameters:
participant
-Participant details with audio/video tracks
video
-VideoTrack wrapper for UI presentation
-
onLocalVideoCreated
Unit onLocalVideoCreated(ScreenMeet.VideoSource source, VideoElement video)
Used as a success callback when a local video source started sharing
- Parameters:
source
- : specifies VideoSource type (camera/screen/annotation)video
-Can be used to preview local video.
-
onLocalVideoStopped
Unit onLocalVideoStopped(ScreenMeet.VideoSource source)
Used when a local video source stopped sharing or notifies about failed attempt to share
- Parameters:
source
- : specifies VideoSource type (camera/screen/annotation)
-
onLocalAudioCreated
Unit onLocalAudioCreated()
Used as a success callback when a local audio source started sharing
-
onLocalAudioStopped
Unit onLocalAudioStopped()
Used when a local video source stopped sharing or notifies about failed attempt to share
-
onConnectionStateChanged
Unit onConnectionStateChanged(ScreenMeet.ConnectionState newState)
Called when session connection state changed
- Parameters:
newState
-session Connection state (Disconnected/Connecting/Connected/Reconnecting).
-
onChatMessage
Unit onChatMessage(ChatMessage chatMessage)
Notifies about new message received from server or own message delivery status update
-
onFeatureRequest
Unit onFeatureRequest(Feature feature, Function1<Boolean, Unit> decisionHandler)
Called when entitlement requested
- Parameters:
feature
- : Feature being requested.decisionHandler
- : The callback called after request is accepted or denied
-
onFeatureRequestRejected
Unit onFeatureRequestRejected(Entitlement entitlement)
Called when previous request was rejected
- Parameters:
entitlement
- : Entitlement request that has been rejected.
-
onFeatureStarted
Unit onFeatureStarted(Feature feature)
Called when certain feature (you approved) starts its activity (remote control, laser pointer)
- Parameters:
feature
- : Feature that has stated
-
onFeatureStopped
Unit onFeatureStopped(Feature feature)
Called when entitlement stopped
- Parameters:
feature
- : Feature that has been stopped
-
-
-
-