clearCache static method
Clear HLS cache for a URL.
Implementation
static Future<void> clearCache(String url) async {
cancel(url);
final hlsCacheDir = await _getHlsCacheDir(url);
final dir = Directory(hlsCacheDir);
if (await dir.exists()) {
await dir.delete(recursive: true);
}
await CacheMetadataStore.remove(url);
}