GetStats

Gets statistical information about the current media resource being played.

void GetStats(std::function<void(rte::PlayerStats *stats, rte::Error *err)> cb)
Since
v4.5.0

This method is used to obtain statistical information about the player, including decoding, rendering frame rate, audio and video bitrate, etc., and asynchronously returns the results through a callback function.

Call timing

Call this method after OpenWithUrl.

Restrictions

None.

Parameters

cb
An asynchronous callback used to notify the result and possible error information of obtaining the statistics. The callback includes the following parameters:
  • stats: The information of the media resource currently being played. See RtePlayerStats.
  • err: The detailed infromation about errors. See Error.