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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidonVideoDisabled(PublisherKit publisher, String reason) Called when the publisher stops sending video.voidonVideoDisableWarning(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.voidonVideoDisableWarningLifted(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.voidonVideoEnabled(PublisherKit publisher, String reason) Called when the publisher's video stream resumes (after video was disabled).
-
Method Details
-
onVideoDisabled
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
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
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- ThePublisherKitthat may stop sending video soon.
-
onVideoDisableWarningLifted
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- ThePublisherKitinstance.
-