Package com.zego.zegoliveroom.callback
Interface IZegoLivePlayerCallback
-
- All Known Subinterfaces:
IZegoLivePlayerCallback2
public interface IZegoLivePlayerCallback
观众端回调。Copyright © 2017 Zego. All rights reserved.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onInviteJoinLiveRequest(int seq, java.lang.String fromUserID, java.lang.String fromUserName, java.lang.String roomID)
观众收到主播的连麦邀请。void
onPlayQualityUpdate(java.lang.String streamID, ZegoPlayStreamQuality sq)
拉流质量更新.void
onPlayStateUpdate(int stateCode, java.lang.String streamID)
拉流状态更新.void
onRecvEndJoinLiveCommand(java.lang.String fromUserID, java.lang.String fromUserName, java.lang.String roomID)
连麦观众收到主播的结束连麦信令。void
onVideoSizeChangedTo(java.lang.String streamID, int width, int height)
视频宽高变化通知,startPlay后,如果视频宽度或者高度发生变化(首次的值也会),则收到该通知.
-
-
-
Method Detail
-
onPlayStateUpdate
void onPlayStateUpdate(int stateCode, java.lang.String streamID)
拉流状态更新.- Parameters:
stateCode
- 状态码, 0:成功, 其它:失败streamID
- 流ID
-
onPlayQualityUpdate
void onPlayQualityUpdate(java.lang.String streamID, ZegoPlayStreamQuality sq)
拉流质量更新.- Parameters:
streamID
- 流IDsq
- 质量描述
-
onInviteJoinLiveRequest
void onInviteJoinLiveRequest(int seq, java.lang.String fromUserID, java.lang.String fromUserName, java.lang.String roomID)
观众收到主播的连麦邀请。- Parameters:
seq
- 连麦请求序列号,标识当次连麦请求fromUserID
- 来源用户 IDfromUserName
- 来源用户名roomID
- 房间 ID- See Also:
ZegoLiveRoom.inviteJoinLive(String, IZegoResponseCallback)
,ZegoLiveRoom.respondInviteJoinLiveReq(int, int)
-
onRecvEndJoinLiveCommand
void onRecvEndJoinLiveCommand(java.lang.String fromUserID, java.lang.String fromUserName, java.lang.String roomID)
连麦观众收到主播的结束连麦信令。连麦观众收到此回调事件后,可做一些相关的清理工作。
- Parameters:
fromUserID
- 来源用户 IDfromUserName
- 来源用户名roomID
- 房间 ID
-
onVideoSizeChangedTo
void onVideoSizeChangedTo(java.lang.String streamID, int width, int height)
视频宽高变化通知,startPlay后,如果视频宽度或者高度发生变化(首次的值也会),则收到该通知.- Parameters:
streamID
- 流IDwidth
- 视频宽度height
- 视频高度
-
-