Interface Session.ReconnectionListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onReconnected​(Session session)
      Invoked when the local client has reconnected to the OpenTok session after its network connection was lost temporarily.
      void onReconnecting​(Session session)
      Invoked when the local client has lost its connection to an OpenTok session and is trying to reconnect.
    • Method Detail

      • onReconnecting

        void onReconnecting​(Session session)
        Invoked when the local client has lost its connection to an OpenTok session and is trying to reconnect. This results from a loss in network connectivity. If the client can reconnect to the session, the onReconnected(Session session) method is called. Otherwise, if the client cannot reconnect, the Session.SessionListener.onDisconnected(Session session) method is called.

        In response to this method being called, you may want to provide a user interface notification, to let the user know that the app is trying to reconnect to the session and that audio-video streams are temporarily disconnected.

        Parameters:
        session - The session your client is attempting to reconnect to.
        See Also:
        onReconnected(Session session)