MethodChannelVideoCache class

An implementation of VideoCachePlatform that uses method channels.

Inheritance

Constructors

MethodChannelVideoCache()

Properties

eventChannel → EventChannel
Stream controller for download progress updates
final
hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelDownload(String url) → Future<bool>
Cancels a download in progress.
override
getCachedVideoPath(String url) → Future<String?>
Gets the local file path for a cached video.
override
getDownloadInfo(String url) → Future<DownloadProgress>
Gets detailed download progress information for a video. Returns a DownloadProgress object with progress and bytes information.
override
getDownloadInfoStream(String url) → Stream<DownloadProgress>
Returns a stream that emits detailed download progress information for a video. The stream emits DownloadProgress objects containing progress and bytes information.
override
getDownloadProgress(String url) → Future<double>
Gets the download progress for a video. Returns a double between 0.0 and 1.0.
override
getDownloadProgressStream(String url) → Stream<double>
Returns a stream that emits download progress updates for a video. The stream emits values between 0.0 and 1.0.
override
getMaxConcurrentDownloads() → Future<int?>
Gets the maximum number of concurrent downloads supported by the platform. Returns null if the platform doesn't specify a limit.
override
getPlatformVersion() → Future<String?>
override
isVideoCached(String url) → Future<bool>
Checks if a video is cached locally.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeDownload(String url) → Future<bool>
Removes a downloaded video from the cache.
override
startDownload(String url) → Future<String?>
Starts downloading a video from the given url. Returns a unique identifier for the download task.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited