stopPreCache method

Future<void> stopPreCache(
  1. BetterPlayerDataSource betterPlayerDataSource
)

Stop pre cache for given betterPlayerDataSource. If there was no pre cache started for given betterPlayerDataSource then it will be ignored.

Implementation

Future<void> stopPreCache(
    BetterPlayerDataSource betterPlayerDataSource) async {
  return VideoPlayerController?.stopPreCache(betterPlayerDataSource.url,
      betterPlayerDataSource.cacheConfiguration?.key);
}