PublisherKit.VideoListener
public abstract static interface VideoListener
Enclosing class: PublisherKit
Monitors when the publisher starts and stops receiving video data.
Methods
| Name | Description |
|---|---|
onVideoDisableWarning(publisher) |
Called when the publisher determines that the network congestion level has degraded and the video will be disabled if the quality degrades further. |
onVideoDisableWarningLifted(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. |
onVideoDisabled(publisher, reason) |
Called when the publisher stops sending video. |
onVideoEnabled(publisher, reason) |
Called when the publisher's video stream resumes (after video was disabled). |
onVideoDisableWarning(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:
| Name | Type | Description |
|---|---|---|
publisher |
PublisherKit | The PublisherKit that may stop sending video soon. |
onVideoDisableWarningLifted(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:
| Name | Type | Description |
|---|---|---|
publisher |
PublisherKit | The PublisherKit instance. |
onVideoDisabled(publisher, reason)
Called when the publisher stops sending video. Check the reason parameter for the reason why the video stopped.
Parameters:
| Name | Type | Description |
|---|---|---|
publisher |
PublisherKit | The instance invoking this call. |
reason |
String | The reason that the video track was disabled. This is set to one of the following values: PublisherKit.VIDEO_REASON_QUALITY. |
onVideoEnabled(publisher, 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:
| Name | Type | Description |
|---|---|---|
publisher |
PublisherKit | The instance invoking this call. |
reason |
String | The reason that the video track was started (or resumed). This is set to one of the following values: PublisherKit.VIDEO_REASON_QUALITY. |