Package com.zego.zegoliveroom.callback
Interface IZegoLivePlayerCallback2
-
- All Superinterfaces:
IZegoLivePlayerCallback
public interface IZegoLivePlayerCallback2 extends IZegoLivePlayerCallback
观众端回调。Copyright © 2019 Zego. All rights reserved.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onPlayStatsUpdate(ZegoPlayStats stats)
拉的所有rtc和l3流的统计数据更新回调void
onPlayVideoSuperResolutionUpdate(java.lang.String streamID, int state, int errorCode)
视频超分状态回调 当开启或关闭视频超分后,拉流视频渲染时根据实际情况通知开发者是否开启超分。void
onRecvRemoteAudioFirstFrame(java.lang.String streamID)
接收到远端音频的首帧通知void
onRecvRemoteVideoFirstFrame(java.lang.String streamID)
接收到远端视频的首帧通知void
onRemoteCameraStatusUpdate(java.lang.String streamID, int status, int reason)
远端摄像头状态通知void
onRemoteMicStatusUpdate(java.lang.String streamID, int status, int reason)
远端麦克风状态通知void
onRemoteSpeakerStatusUpdate(java.lang.String streamID, int status, int reason)
远端扬声器状态通知void
onRenderRemoteVideoFirstFrame(java.lang.String streamID)
远端视频渲染首帧通知void
onVideoDecoderError(int codecID, int errorCode, java.lang.String streamID)
视频解码器错误-
Methods inherited from interface com.zego.zegoliveroom.callback.IZegoLivePlayerCallback
onInviteJoinLiveRequest, onPlayQualityUpdate, onPlayStateUpdate, onRecvEndJoinLiveCommand, onVideoSizeChangedTo
-
-
-
-
Method Detail
-
onRemoteCameraStatusUpdate
void onRemoteCameraStatusUpdate(java.lang.String streamID, int status, int reason)
远端摄像头状态通知- Parameters:
streamID
- 流IDstatus
-ZegoConstants.DeviceStatus
reason
-ZegoConstants.DeviceErrorReason
-
onRemoteMicStatusUpdate
void onRemoteMicStatusUpdate(java.lang.String streamID, int status, int reason)
远端麦克风状态通知- Parameters:
streamID
- 流IDstatus
-ZegoConstants.DeviceStatus
reason
-ZegoConstants.DeviceErrorReason
-
onRemoteSpeakerStatusUpdate
void onRemoteSpeakerStatusUpdate(java.lang.String streamID, int status, int reason)
远端扬声器状态通知- Parameters:
streamID
- 流IDstatus
-ZegoConstants.DeviceStatus
reason
-ZegoConstants.DeviceErrorReason
-
onRecvRemoteAudioFirstFrame
void onRecvRemoteAudioFirstFrame(java.lang.String streamID)
接收到远端音频的首帧通知- Parameters:
streamID
- 流ID
-
onRecvRemoteVideoFirstFrame
void onRecvRemoteVideoFirstFrame(java.lang.String streamID)
接收到远端视频的首帧通知- Parameters:
streamID
- 流ID
-
onRenderRemoteVideoFirstFrame
void onRenderRemoteVideoFirstFrame(java.lang.String streamID)
远端视频渲染首帧通知- Parameters:
streamID
- 流ID
-
onVideoDecoderError
void onVideoDecoderError(int codecID, int errorCode, java.lang.String streamID)
视频解码器错误- Parameters:
codecID
- 编解码器, 详见ZegoConstants.ZegoVideoCodecAvc
errorCode
- 错误码, 详见ZegoConstants.ZegoCodecError
streamID
- 流 ID
-
onPlayStatsUpdate
void onPlayStatsUpdate(ZegoPlayStats stats)
拉的所有rtc和l3流的统计数据更新回调- Parameters:
stats
- 统计数据, 详见ZegoPlayStats
-
onPlayVideoSuperResolutionUpdate
void onPlayVideoSuperResolutionUpdate(java.lang.String streamID, int state, int errorCode)
视频超分状态回调 当开启或关闭视频超分后,拉流视频渲染时根据实际情况通知开发者是否开启超分。- Parameters:
streamID
- 超分的流 IDstate
- 超分状态, 0 关闭,1 开启errorCode
- 错误码
-
-