Package com.opentok.android
Interface PublisherKit.VideoListener
-
- Enclosing class:
- PublisherKit
public static interface PublisherKit.VideoListener
Monitors when the publisher starts and stops receiving video data.
-
-
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
.
-
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 theonVideoDisabled(PublisherKit publisher, String reason)
method called. If the network congestion level improves, theonVideoDisableWarningLifted(PublisherKit publisher)
method is called.This method is mainly called when connection quality degrades.
- Parameters:
publisher
- ThePublisherKit
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
- ThePublisherKit
instance.
-
-