SubscriberKit.SubscriberListener

public abstract static interface SubscriberListener

Enclosing class: SubscriberKit

Monitors state changes of a SubscriberKit instance.

Methods

Name Description
onConnected(subscriber) Invoked when the instance has successfully connected to the stream and begins playing media.
onDisconnected(subscriber) Invoked when the instance has successfully destroyed.
onError(subscriber, error) Invoked when a subscriber reports an error.

onConnected(subscriber)

Invoked when the instance has successfully connected to the stream and begins playing media.

Parameters:
Name Type Description
subscriber SubscriberKit The instance invoking this call.

onDisconnected(subscriber)

Invoked when the instance has successfully destroyed.

Parameters:
Name Type Description
subscriber SubscriberKit The instance invoking this call.

onError(subscriber, error)

Invoked when a subscriber reports an error.

Most errors are fatal: the subscriber is automatically dropped and can no longer be used. Some errors are continuable and leave the subscriber usable; when an error is non-fatal it is stated in the error description.

Parameters:
Name Type Description
subscriber SubscriberKit The instance invoking this call.
error OpentokError The error.