Package com.zego.zegoliveroom.callback
Interface IZegoLivePublisherCallback
-
public interface IZegoLivePublisherCallback
主播端回调。Copyright © 2017 Zego. All rights reserved.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCaptureAudioFirstFrame()
采集音频的首帧通知void
onCaptureVideoFirstFrame()
采集视频的首帧通知void
onCaptureVideoSizeChangedTo(int width, int height)
采集视频的宽度和高度变化通知.void
onJoinLiveRequest(int seq, java.lang.String fromUserID, java.lang.String fromUserName, java.lang.String roomID)
收到观众的连麦请求。void
onPublishQualityUpdate(java.lang.String streamID, ZegoPublishStreamQuality sq)
推流质量更新.void
onPublishStateUpdate(int stateCode, java.lang.String streamID, java.util.HashMap<java.lang.String,java.lang.Object> streamInfo)
推流状态更新.
-
-
-
Method Detail
-
onPublishStateUpdate
void onPublishStateUpdate(int stateCode, java.lang.String streamID, java.util.HashMap<java.lang.String,java.lang.Object> streamInfo)
推流状态更新.- Parameters:
stateCode
- 状态码, 0:成功, 其它:失败streamID
- 流IDstreamInfo
- 推流信息
-
onJoinLiveRequest
void onJoinLiveRequest(int seq, java.lang.String fromUserID, java.lang.String fromUserName, java.lang.String roomID)
收到观众的连麦请求。- Parameters:
seq
- 连麦请求序列号,标识当次连麦请求fromUserID
- 来源用户 IDfromUserName
- 来源用户名roomID
- 房间 ID- See Also:
ZegoLiveRoom.requestJoinLive(IZegoResponseCallback)
-
onPublishQualityUpdate
void onPublishQualityUpdate(java.lang.String streamID, ZegoPublishStreamQuality sq)
推流质量更新.- Parameters:
streamID
- 流 IDsq
- 质量描述
-
onCaptureVideoSizeChangedTo
void onCaptureVideoSizeChangedTo(int width, int height)
采集视频的宽度和高度变化通知.- Parameters:
width
- 视频宽度height
- 视频高度
-
onCaptureVideoFirstFrame
void onCaptureVideoFirstFrame()
采集视频的首帧通知
-
onCaptureAudioFirstFrame
void onCaptureAudioFirstFrame()
采集音频的首帧通知
-
-