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. This is a beta feature.
        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. This is a beta feature.
        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.
      • onVideoDisableWarning

        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. If the quality degrades further, the publisher disables the video and the onVideoDisabled(PublisherKit publisher, String reason) method called. If the network congestion level improves, the onVideoDisableWarningLifted(PublisherKit publisher) method is called.

        This method is mainly called when connection quality degrades.

        This is a beta feature.

        Parameters:
        publisher - The PublisherKit that may stop sending video soon.
      • 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.

        This is a beta feature.

        Parameters:
        publisher - The PublisherKit instance.