preCacheVideo static method

Future<void> preCacheVideo(
  1. String url
)

Pre-caches a video URL

Implementation

static Future<void> preCacheVideo(String url) async {
  try {
    await instance.downloadFile(url);
  } catch (e) {
    print('Error pre-caching video: $e');
  }
}