onPlayerCacheStats property
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.
statsInformation about the media resources in cache. See CacheStatistics.
Implementation
final void Function(CacheStatistics stats)? onPlayerCacheStats;