Package com.opentok.android
Interface SubscriberKit.StreamListener
-
- Enclosing class:
- SubscriberKit
public static interface SubscriberKit.StreamListener
Monitors when the subscriber's stream is interrupted and resumes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
onAudioDisabled(SubscriberKit subscriber)
Called when the subscriber stops receiving audio.default void
onAudioEnabled(SubscriberKit subscriber)
Called when the subscriber's audio stream starts (when there previously was no audio) or resumes (after audio was disabled).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 theSubscriberKit.SubscriberListener.onDisconnected(SubscriberKit subscriber)
method is called.
-
-
-
Method Detail
-
onReconnected
void onReconnected(SubscriberKit subscriber)
Called when the subscriber's stream has resumed, after theSubscriberKit.SubscriberListener.onDisconnected(SubscriberKit subscriber)
method is called.- Parameters:
subscriber
- The subscriber.
-
onDisconnected
void onDisconnected(SubscriberKit subscriber)
Called when the subscriber's stream has been interrupted.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.- Parameters:
subscriber
- The subscriber.
-
onAudioEnabled
default void onAudioEnabled(SubscriberKit subscriber)
Called when the subscriber's audio stream starts (when there previously was no audio) or resumes (after audio was disabled).- Parameters:
subscriber
- The instance invoking this call.
-
onAudioDisabled
default void onAudioDisabled(SubscriberKit subscriber)
Called when the subscriber stops receiving audio.- Parameters:
subscriber
- The instance invoking this call.
-
-