public interface EventListener
EventListener
provides developer events about connection of a StreamManager
. You
could enable this listener by StreamManager.addEventListener(EventListener)
.
All of these events would be invoked on UI thread.Modifier and Type | Method and Description |
---|---|
void |
onError(Exception error,
String liveId)
Called when an error occurs in streaming, that is
StreamManager.getStreamState() returns
StreamManager.STATE_STREAMING . |
void |
onStreamStatsReportUpdate(StreamStatsReport streamStatsReport)
Called when the stream statistics report has been updated in streaming state,
that is when
StreamManager.getStreamState() returns StreamManager.STATE_STREAMING . |
void onStreamStatsReportUpdate(StreamStatsReport streamStatsReport)
StreamManager.getStreamState()
returns StreamManager.STATE_STREAMING
.streamStatsReport
- streamStatsReportvoid onError(Exception error, String liveId)
StreamManager.getStreamState()
returns
StreamManager.STATE_STREAMING
. In this case, live event won't be set to ended.
If you want to end this event, you could use StreamManager.endLiveEvent(String)
}.error
- failure reasonliveId
- live event id of current streaming