Interface PublisherKit.VideoListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onVideoDisabled​(PublisherKit publisher, java.lang.String reason)
      Called when the publisher stops sending video.
      void onVideoDisableWarning​(PublisherKit publisher)
      Called when the publisher determines that the network congestion level has degraded and the video will be disabled if the quality degrades further.
      void onVideoDisableWarningLifted​(PublisherKit publisher)
      Called when the publisher determines that the network congestion level has improved to the point at which the video being disabled is not an immediate risk.
      void onVideoEnabled​(PublisherKit publisher, java.lang.String reason)
      Called when the publisher's video stream resumes (after video was disabled).
    • Method Detail

      • onVideoDisabled

        void onVideoDisabled​(PublisherKit publisher,
                             java.lang.String reason)
        Called when the publisher stops sending video. Check the reason parameter for the reason why the video stopped.
        Parameters:
        publisher - The instance invoking this call.
        reason - The reason that the video track was disabled. This is set to one of the following values: PublisherKit.VIDEO_REASON_QUALITY.
      • onVideoEnabled

        void onVideoEnabled​(PublisherKit publisher,
                            java.lang.String reason)
        Called when the publisher's video stream resumes (after video was disabled). Check the reason parameter for the reason why the video stopped.
        Parameters:
        publisher - The instance invoking this call.
        reason - The reason that the video track was started (or resumed). This is set to one of the following values: PublisherKit.VIDEO_REASON_QUALITY.
      • onVideoDisableWarningLifted

        void onVideoDisableWarningLifted​(PublisherKit publisher)
        Called when the publisher determines that the network congestion level has improved to the point at which the video being disabled is not an immediate risk.

        This method is mainly called when connection quality improves.

        Parameters:
        publisher - The PublisherKit instance.