Package com.zego.zegoliveroom.callback
Interface IZegoLiveEventCallback
-
public interface IZegoLiveEventCallback
直播事件回调。Copyright © 2017 Zego. All rights reserved.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IZegoLiveEventCallback.StreamEvent
-
Field Summary
Fields Modifier and Type Field Description static int
Play_AudioBreak
音频卡顿开始.static int
Play_AudioBreakCancel
音频卡顿取消.static int
Play_AudioBreakEnd
音频卡顿结束.static int
Play_BeginRetry
重试拉流.static int
Play_RetrySuccess
重试拉流成功.static int
Play_TempDisconnected
拉流临时中断.static int
Play_VideoBreak
视频卡顿开始.static int
Play_VideoBreakCancel
视频卡顿取消.static int
Play_VideoBreakEnd
视频卡顿结束.static int
Publish_BeginRetry
重试推流.static int
Publish_RetrySuccess
重试推流成功.static int
Publish_TempDisconnected
推流临时中断.static int
PublishInfo_RegisterFailed
注册推流信息失败.static int
PublishInfo_RegisterSuccess
注册推流信息成功.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onLiveEvent(int event, java.util.HashMap<java.lang.String,java.lang.String> info)
直播事件回调.void
onStreamEvent(int event, java.lang.String streamID, java.util.HashMap<java.lang.String,java.lang.String> extraInfo)
推拉流事件回调
-
-
-
Field Detail
-
Play_BeginRetry
static final int Play_BeginRetry
重试拉流.- See Also:
- Constant Field Values
-
Play_RetrySuccess
static final int Play_RetrySuccess
重试拉流成功.- See Also:
- Constant Field Values
-
Publish_BeginRetry
static final int Publish_BeginRetry
重试推流.- See Also:
- Constant Field Values
-
Publish_RetrySuccess
static final int Publish_RetrySuccess
重试推流成功.- See Also:
- Constant Field Values
-
Play_TempDisconnected
static final int Play_TempDisconnected
拉流临时中断.- See Also:
- Constant Field Values
-
Publish_TempDisconnected
static final int Publish_TempDisconnected
推流临时中断.- See Also:
- Constant Field Values
-
Play_VideoBreak
static final int Play_VideoBreak
视频卡顿开始.- See Also:
- Constant Field Values
-
Play_VideoBreakEnd
static final int Play_VideoBreakEnd
视频卡顿结束.- See Also:
- Constant Field Values
-
Play_AudioBreak
static final int Play_AudioBreak
音频卡顿开始.- See Also:
- Constant Field Values
-
Play_AudioBreakEnd
static final int Play_AudioBreakEnd
音频卡顿结束.- See Also:
- Constant Field Values
-
PublishInfo_RegisterFailed
static final int PublishInfo_RegisterFailed
注册推流信息失败.- See Also:
- Constant Field Values
-
PublishInfo_RegisterSuccess
static final int PublishInfo_RegisterSuccess
注册推流信息成功.- See Also:
- Constant Field Values
-
Play_VideoBreakCancel
static final int Play_VideoBreakCancel
视频卡顿取消.- See Also:
- Constant Field Values
-
Play_AudioBreakCancel
static final int Play_AudioBreakCancel
音频卡顿取消.- See Also:
- Constant Field Values
-
-
Method Detail
-
onLiveEvent
void onLiveEvent(int event, java.util.HashMap<java.lang.String,java.lang.String> info)
直播事件回调.- Parameters:
event
- 事件ID,参见Play_BeginRetry
,Play_RetrySuccess
,Publish_BeginRetry
,Publish_RetrySuccess
,Play_TempDisconnected
,Publish_TempDisconnected
,Play_VideoBreak
,Play_VideoBreakEnd
,Play_AudioBreak
,Play_AudioBreakEnd
,PublishInfo_RegisterFailed
,PublishInfo_RegisterSuccess
info
- 详细信息
-
onStreamEvent
void onStreamEvent(int event, java.lang.String streamID, java.util.HashMap<java.lang.String,java.lang.String> extraInfo)
推拉流事件回调- Parameters:
event
- 事件ID, 详见IZegoLiveEventCallback.StreamEvent
streamID
- 流IDextraInfo
- 附加信息,目前包括的键有 "url"表示地址, "streamProtocol"表示流协议,包括rtmp,flv,avertp,hls,webrtc等, "netProtocol"表示网络协议,包括tcp,udp,quic, "resourceType"表示资源类型,包括cdn,rtc,l3,
-
-