public static interface SubscriberKit.VideoListener
Modifier and Type | Method and Description |
---|---|
void |
onVideoDataReceived(SubscriberKit subscriber)
Invoked when an subscriber initially receives video data.
|
void |
onVideoDisabled(SubscriberKit subscriber,
java.lang.String reason)
Called when the subscriber stops receiving video.
|
void |
onVideoDisableWarning(SubscriberKit subscriber)
Called when the OpenTok Media Router determines that the stream quality has
degraded and the video will be disabled if the quality degrades further.
|
void |
onVideoDisableWarningLifted(SubscriberKit subscriber)
Called when the OpenTok Media Router determines that the stream quality
has improved to the point at which the video being disabled is not an
immediate risk.
|
void |
onVideoEnabled(SubscriberKit subscriber,
java.lang.String reason)
Called when the subscriber's video stream starts (when there
previously was no video) or resumes (after video was disabled).
|
void onVideoDataReceived(SubscriberKit subscriber)
subscriber
- The instance invoking this call.void onVideoDisabled(SubscriberKit subscriber, java.lang.String reason)
subscriber
- The instance invoking this callreason
- The reason that the video track was disabled. This
is set to one of the following values:
SubscriberKit.VIDEO_REASON_PUBLISH_VIDEO
,
SubscriberKit.VIDEO_REASON_SUBSCRIBE_TO_VIDEO
,
SubscriberKit.VIDEO_REASON_QUALITY
, or
SubscriberKit.VIDEO_REASON_CODEC_NOT_SUPPORTED
.void onVideoEnabled(SubscriberKit subscriber, java.lang.String reason)
subscriber
- The instance invoking this callreason
- The reason that the video track was started (or
resumed). This is set to one of the following values:
SubscriberKit.VIDEO_REASON_PUBLISH_VIDEO
,
SubscriberKit.VIDEO_REASON_SUBSCRIBE_TO_VIDEO
, or
SubscriberKit.VIDEO_REASON_QUALITY
.void onVideoDisableWarning(SubscriberKit subscriber)
onVideoDisabled(SubscriberKit subscriber, String reason)
method
called. If the stream quality improves, the
onVideoDisableWarningLifted(SubscriberKit subscriber)
method is
called.
This feature is only available in sessions that use the OpenTok Media Router (sessions with the media mode set to routed), not in sessions with the media mode set to relayed. (See The OpenTok Media Router and media modes).
This method is mainly called when connection quality degrades.
subscriber
- The SubscriberKit
that may stop receiving video soon.void onVideoDisableWarningLifted(SubscriberKit subscriber)
onVideoDisableWarning(SubscriberKit subscriber)
method is
called.
This feature is only available in sessions that use the OpenTok Media Router (sessions with the media mode set to routed), not in sessions with the media mode set to relayed. (See The OpenTok Media Router and media modes.)
This method is mainly called when connection quality improves.
subscriber
- The SubscriberKit
instance.