ZegoLiveRoom
LiveRoomCallback-Player.h
Go to the documentation of this file.
1//
2// LiveRoomCallback-Player.h
3// zegoliveroom
4//
5// Created by Randy Qiu on 2017/1/23.
6//
7//
8
9#ifndef LiveRoomCallback_Player_h
10#define LiveRoomCallback_Player_h
11
12#include "./LiveRoomDefines.h"
13#include "video_capture.h"
14
15namespace ZEGO
16{
17 namespace LIVEROOM
18 {
20 {
21 public:
31 virtual void OnPlayStateUpdate(int stateCode, const char* pszStreamID) = 0;
32
42 virtual void OnPlaySwitched(const char* pszStreamID, int error) {};
43
56 virtual void OnPlayQualityUpdate(const char* pszStreamID, int quality, double videoFPS, double videoKBS) {};
57
67 virtual void OnPlayQualityUpdate(const char* pszStreamID, ZegoPlayQuality playQuality) {};
68
80 virtual void OnJoinLiveResponse(int result, const char* pszFromUserId, const char* pszFromUserName, int seq) {};
81
92 virtual void OnRecvEndJoinLiveCommand(const char *pszFromUserId, const char* pszFromUserName, const char* pszRoomID) {};
93
105 virtual void OnInviteJoinLiveRequest(int seq, const char* pszFromUserId, const char* pszFromUserName, const char* pszRoomID) {};
106
121 virtual void OnVideoSizeChanged(const char* pStreamID, int nWidth, int nHeight) {};
122
134 virtual void OnRemoteCameraStatusUpdate(const char* pStreamID, int nStatus, int nReason) {};
135
147 virtual void OnRemoteMicStatusUpdate(const char* pStreamID, int nStatus, int nReason) {};
148
160 virtual void OnRemoteSpeakerStatusUpdate(const char* streamID, int status, int reason) {};
161
170 virtual void OnRecvRemoteAudioFirstFrame(const char* pStreamID) {};
171
184 virtual void OnRecvRemoteVideoFirstFrame(const char* pStreamID) {};
185
194 virtual void OnRenderRemoteVideoFirstFrame(const char* pStreamID) {};
195
206 virtual void OnRenderRemoteCameraVideoFirstFrame(const char *pStreamID){};
207
217 virtual void OnSnapshot(void *pImage, const char* pszStreamID) {};
218
225 virtual void OnVideoDecoderError(AV::ZegoVideoCodecAvc codecID, int errorCode, const char* pszStreamID) {}
226
233
243 virtual void OnPlayVideoSuperResolutionUpdate(const char* streamID, int state, int errorCode) {}
244
246 };
247
248 }
249}
250
251
252#endif /* LiveRoomCallback_Player_h */
Definition: LiveRoomCallback-Player.h:20
virtual void OnPlayStatsUpdate(AV::ZegoPlayStats stats)
Definition: LiveRoomCallback-Player.h:232
virtual void OnRecvEndJoinLiveCommand(const char *pszFromUserId, const char *pszFromUserName, const char *pszRoomID)
Definition: LiveRoomCallback-Player.h:92
virtual void OnRemoteSpeakerStatusUpdate(const char *streamID, int status, int reason)
Definition: LiveRoomCallback-Player.h:160
virtual void OnRecvRemoteAudioFirstFrame(const char *pStreamID)
Definition: LiveRoomCallback-Player.h:170
virtual void OnPlayStateUpdate(int stateCode, const char *pszStreamID)=0
virtual void OnVideoSizeChanged(const char *pStreamID, int nWidth, int nHeight)
Definition: LiveRoomCallback-Player.h:121
virtual void OnPlayQualityUpdate(const char *pszStreamID, int quality, double videoFPS, double videoKBS)
Definition: LiveRoomCallback-Player.h:56
virtual void OnRecvRemoteVideoFirstFrame(const char *pStreamID)
Definition: LiveRoomCallback-Player.h:184
virtual void OnSnapshot(void *pImage, const char *pszStreamID)
Definition: LiveRoomCallback-Player.h:217
virtual void OnPlayQualityUpdate(const char *pszStreamID, ZegoPlayQuality playQuality)
Definition: LiveRoomCallback-Player.h:67
virtual void OnVideoDecoderError(AV::ZegoVideoCodecAvc codecID, int errorCode, const char *pszStreamID)
Definition: LiveRoomCallback-Player.h:225
virtual ~ILivePlayerCallback()
Definition: LiveRoomCallback-Player.h:245
virtual void OnRemoteCameraStatusUpdate(const char *pStreamID, int nStatus, int nReason)
Definition: LiveRoomCallback-Player.h:134
virtual void OnRemoteMicStatusUpdate(const char *pStreamID, int nStatus, int nReason)
Definition: LiveRoomCallback-Player.h:147
virtual void OnPlayVideoSuperResolutionUpdate(const char *streamID, int state, int errorCode)
Definition: LiveRoomCallback-Player.h:243
virtual void OnInviteJoinLiveRequest(int seq, const char *pszFromUserId, const char *pszFromUserName, const char *pszRoomID)
Definition: LiveRoomCallback-Player.h:105
virtual void OnRenderRemoteVideoFirstFrame(const char *pStreamID)
Definition: LiveRoomCallback-Player.h:194
virtual void OnJoinLiveResponse(int result, const char *pszFromUserId, const char *pszFromUserName, int seq)
Definition: LiveRoomCallback-Player.h:80
virtual void OnPlaySwitched(const char *pszStreamID, int error)
Definition: LiveRoomCallback-Player.h:42
virtual void OnRenderRemoteCameraVideoFirstFrame(const char *pStreamID)
Definition: LiveRoomCallback-Player.h:206
ZegoVideoCodecAvc
Definition: zego-api-defines.h:93
Definition: AVDefines.h:17
Definition: zego-api-defines.h:963
Definition: LiveRoomDefines.h:102