onPlayerCacheStats property
Reports the statistics of the media file being cached.
After you call the openWithMediaSource method and set enableCache as true, the SDK triggers this callback once per second to report the statistics of the media file being cached.
stats
The statistics of the media file being cached. See CacheStatistics.
Implementation
final void Function(CacheStatistics stats)? onPlayerCacheStats;