UrlParser class abstract

Abstract class that defines the interface for URL parsers. Implementations are responsible for handling video URL parsing, caching, downloading, and precaching logic.

Implementers

Constructors

UrlParser.new()

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

cache(DownloadTask task) Future<Uint8List?>
Retrieves cached data for the given task from memory or file.
download(DownloadTask task) Future<Uint8List?>
Downloads data from the network for the given task.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(Socket socket, Uri uri, Map<String, String> headers) Future<bool>
Parses data from the given socket using the specified uri and headers.
precache(String url, Map<String, Object>? headers, int cacheSegments, bool downloadNow, bool progressListen) Future<StreamController<Map>?>
Pre-caches the video at the specified url.
push(DownloadTask task) Future<void>
Pushes the task to the download manager for processing.
toString() String
A string representation of this object.
inherited

Operators

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