我要评分
获取效率
正确性
完整性
易理解

GetStatistics

Function Usage

Obtains statistics on the video stream engine client, including the network latency, receiving frame rate, and decoding frame rate.

Restrictions

N/A

Prototype

void GetStatistics(StatisticsInfo &info)

Parameters

Parameter

Input/Output

Class

Description

info

Output

StatisticsInfo

Statistics, including the network latency, receiving frame rate, and decoding frame rate.

The structure of the StatisticsInfo type contains the statistics during program running. The format is as follows:
struct StatisticsInfo {
    uint64_t log;     // Network latency (ms)
    uint32_t recvFps; // Receiving frame rate
    uint32_t decFps;  // Decoding frame rate
};

Returns

N/A

Example Call

void Test()
{
    StatisticsInfo info;
    GetStatistics(info);
}