isVideoCached method
Checks if a video is cached locally.
Implementation
@override
Future<bool> isVideoCached(String url) async {
try {
// Instead of using platform isVideoCached, use progress to determine cache status
final progress = await getDownloadProgress(url);
// Consider a video cached only when download is 100% complete
return progress >= 1.0;
} catch (e) {
debugPrint('Error checking if video is cached: $e');
return false;
}
}