onPlayerCacheStats property

void Function(CacheStatistics stats)? onPlayerCacheStats
final

Reports information about the media resources currently in cache.

After calling the openWithMediaSource method and setting the enableCache member to true, the SDK triggers this callback once per second after the media file is opened to report statistics of the currently cached media files.

  • stats Information about the media resources in cache. See CacheStatistics.

Implementation

final void Function(CacheStatistics stats)? onPlayerCacheStats;