Package 

Interface SessionEventListener

  • All Implemented Interfaces:

    
    public interface SessionEventListener
    
                        

    General listener to for events happening during session All callbacks are executed on Main Thread

    • Constructor Detail

    • 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

      • 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

      • 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