Enclosing class: : PublisherKit


public static interface PublisherKit.VideoListener

Monitors when the publisher starts and stops receiving video data.

See Also: : - PublisherKit.setVideoListener(PublisherKit.VideoListener listener)

Method Summary

All MethodsInstance MethodsAbstract Methods

Modifier and Type

Method

Description

void

onVideoDisabled(PublisherKit publisher, 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, String reason)

Called when the publisher's video stream resumes (after video was disabled).

Method Details

onVideoDisabled

void onVideoDisabled(PublisherKit publisher, 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, 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.

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.

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.

Parameters: : publisher - The PublisherKit instance.