ZegoLiveRoom
zego-api-network-probe.h
Go to the documentation of this file.
1#ifndef zego_api_network_probe_h
2#define zego_api_network_probe_h
3
5
6namespace ZEGO
7{
8 namespace NETWORKPROBE
9 {
11 {
12 public:
20 virtual void OnConnectResult(int errcode, const NetConnectInfo& info, PROBE_TYPE type) = 0;
21
28 virtual void OnUpdateSpeed(const NetQuality& netQuality, PROBE_TYPE type) = 0;
29
35 virtual void OnTestStop(int errcode, PROBE_TYPE type) = 0;
36
38
39 };
40
46
52
57
65
72
73 /*
74 停止测速模块
75 */
77
85
86 /*
87 停止下行测速模块
88 */
90 }
91}
92#endif
93
Definition: zego-api-network-probe.h:11
virtual ~IZegoNetWorkProbeCallBack()
Definition: zego-api-network-probe.h:37
virtual void OnTestStop(int errcode, PROBE_TYPE type)=0
virtual void OnUpdateSpeed(const NetQuality &netQuality, PROBE_TYPE type)=0
virtual void OnConnectResult(int errcode, const NetConnectInfo &info, PROBE_TYPE type)=0
ZEGOAVKIT_API void SetNetWorkProbeCallback(IZegoNetWorkProbeCallBack *pCallback)
ZEGOAVKIT_API void StopUplinkSpeedTest()
ZEGOAVKIT_API void SetQualityCallbackInterval(int interval)
ZEGOAVKIT_API void StartUplinkSpeedTest(int bitrate)
ZEGOAVKIT_API void StopDownlinkSpeedTest()
ZEGOAVKIT_API void StartConnectivityTest()
ZEGOAVKIT_API void StartDownlinkSpeedTest(int bitrate)
ZEGOAVKIT_API void StopConnectivityTest()
PROBE_TYPE
Definition: zego-api-network-probe-defines.h:11
Definition: AVDefines.h:17
Definition: zego-api-network-probe-defines.h:18
Definition: zego-api-network-probe-defines.h:28
#define ZEGOAVKIT_API
Definition: zego-api-defines.h:59