public static interface Session.Callback
Modifier and Type | Method and Description |
---|---|
void |
onBitrateUpdate(long bitrate)
Called periodically to inform you on the bandwidth
consumption of the streams when streaming.
|
void |
onPreviewStarted()
Called when the previw of the
VideoStream
has correctly been started. |
void |
onSessionConfigured()
Called when the session has correctly been configured
after calling
Session.configure() . |
void |
onSessionError(int reason,
int streamType,
java.lang.Exception e)
Called when some error occurs.
|
void |
onSessionStarted()
Called when the streams of the session have correctly been started.
|
void |
onSessionStopped()
Called when the stream of the session have been stopped.
|
void onBitrateUpdate(long bitrate)
void onSessionError(int reason, int streamType, java.lang.Exception e)
void onPreviewStarted()
VideoStream
has correctly been started.
If an error occurs while starting the preview,
onSessionError(int, int, Exception)
will be
called instead of onPreviewStarted()
.void onSessionConfigured()
Session.configure()
.
If an error occurs while configuring the Session
,
onSessionError(int, int, Exception)
will be
called instead of onSessionConfigured()
.void onSessionStarted()
Session
,
onSessionError(int, int, Exception)
will be
called instead of onSessionStarted()
.void onSessionStopped()