GetStats
Retrieves statistics of the media resource currently being played by the player.
void GetStats(std::function<void(rte::PlayerStats *stats, rte::Error *err)> cb)
- Since
- Available since v4.4.0.
This method asynchronously returns player statistics via callback, including decoding status, rendering frame rate, audio and video bitrates, etc.
Timing
This method must be called after OpenWithUrl is called.
Parameters
- cb
- Callback that asynchronously notifies the result of retrieving player media resource statistics. You can get the following information from the callback parameters:
stats: Statistics data of the media resource currently being played by the player. See RtePlayerStats.err: Status or error information. See Error.