public static interface SubscriberKit.StreamListener
Modifier and Type | Method and Description |
---|---|
void |
onDisconnected(SubscriberKit subscriber)
Called when the subscriber's stream has been interrupted.
|
void |
onReconnected(SubscriberKit subscriber)
Called when the subscriber's stream has resumed, after the
SubscriberKit.SubscriberListener.onDisconnected(SubscriberKit subscriber) method
is called. |
void onReconnected(SubscriberKit subscriber)
SubscriberKit.SubscriberListener.onDisconnected(SubscriberKit subscriber)
method
is called.subscriber
- The subscriber.void onDisconnected(SubscriberKit subscriber)
In response to this method being called, you may want to provide a user interface notification, to let the user know that the audio-video stream is temporarily disconnected and the app is trying to reconnect to the stream.
If the client reconnects to the stream, the
onReconnected(SubscriberKit subscriber)
method is called. Otherwise, the
SubscriberKit.SubscriberListener.onDisconnected(SubscriberKit subscriber)
method
is called.
subscriber
- The subscriber.