OTSubscriberVideoEventReason Constants Reference
Declared in | OTSubscriberKit.h |
OTSubscriberVideoEventReason
Video enabled and disabled events are accompanied with a reason code, for determining why the video track was enabled/disabled.
Definition
typedef NS_ENUM(NSInteger, OTSubscriberVideoEventReason ) {
OTSubscriberVideoEventPublisherPropertyChanged = 1,
OTSubscriberVideoEventSubscriberPropertyChanged = 2,
OTSubscriberVideoEventQualityChanged = 3,
};
Constants
OTSubscriberVideoEventPublisherPropertyChanged
-
The video event was caused by the stream’s publisher changing the value for OTPublisherKit.publishVideo.
Declared In
OTSubscriberKit.h
. OTSubscriberVideoEventSubscriberPropertyChanged
-
The video event was caused by a change to this subscriber’s OTSubscriberKit.subscribeToVideo property.
Declared In
OTSubscriberKit.h
. OTSubscriberVideoEventQualityChanged
-
The video event was caused by a change to the video stream quality. Stream quality may change due to network conditions or CPU usage on either the subscriber or pubisher.
This reason is only used in sessions that have the media mode set to “routed”. This feature of the OpenTok Media Router has a subscriber drop the video stream when the video stream quality degrades, and the [OTSubscriberKitDelegate subscriberVideoDisabled:reason:] message is sent. When conditions improve, the video stream resumes, and the [OTSubscriberKitDelegate subscriberVideoEnabled:reason:] message is sent.
When the video stream is dropped, the subscriber continues to receive the audio stream, if there is one.
When the Subscriber’s stream quality deteriorates to a level that is low enough that the video stream is at risk of being disabled, the [OTSubscriberKitDelegate subscriberVideoDisableWarning:] message is sent. The [OTSubscriberKitDelegate subscriberVideoDisableWarning:] message is sent before the [OTSubscriberKitDelegate subscriberVideoDisabled:reason:] message is sent.
Declared In
OTSubscriberKit.h
.
Declared In
OTSubscriberKit.h