getCachedVideoPath method

  1. @override
Future<String?> getCachedVideoPath(
  1. String url
)
override

Gets the local file path for a cached video.

Implementation

@override
Future<String?> getCachedVideoPath(String url) async {
  try {
    final result = await methodChannel.invokeMethod<String>(
      'getCachedVideoPath',
      {'url': url},
    );
    return result;
  } catch (e) {
    debugPrint('Error getting cached video path: $e');
    return null;
  }
}