stopPreCache method

Future<void> stopPreCache(
  1. PipFlutterPlayerDataSource pipFlutterPlayerDataSource
)

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

Implementation

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