VideoCachePlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • VideoCachePlatform
Implementers

Constructors

VideoCachePlatform.new()
Constructs a VideoCachePlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelDownload(String url) Future<bool>
Cancels a download in progress.
getCachedVideoPath(String url) Future<String?>
Gets the local file path for a cached video.
getDownloadInfo(String url) Future<DownloadProgress>
Gets detailed download progress information for a video. Returns a DownloadProgress object with progress and bytes information.
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.
getDownloadProgress(String url) Future<double>
Gets the download progress for a video. Returns a double between 0.0 and 1.0.
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.
getMaxConcurrentDownloads() Future<int?>
Gets the maximum number of concurrent downloads supported by the platform. Returns null if the platform doesn't specify a limit.
getPlatformVersion() Future<String?>
isVideoCached(String url) Future<bool>
Checks if a video is cached locally.
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.
startDownload(String url) Future<String?>
Starts downloading a video from the given url. Returns a unique identifier for the download task.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance VideoCachePlatform
The default instance of VideoCachePlatform to use.
getter/setter pair