getStats

Gets statistical information about the current media resource being played.

public void getStats(PlayerGetStatsCallback callback);
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

callback
An asynchronous callback used to notify the result and possible error information of obtaining the statistics. See the onResult callback in the PlayerGetStatsCallback class.