UrlParserMp4 class

MP4 URL parser implementation. Handles caching, downloading, and parsing of MP4 video files.

Implemented types

Constructors

UrlParserMp4()

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.
override
concurrent(DownloadTask task, Map<String, String> headers, int contentLength) → Future<void>
Manages concurrent download tasks.
download(DownloadTask task) → Future<Uint8List?>
Downloads data from the network for the given task.
override
Sends a HEAD request to get the content length of the resource at uri.
isCached(String url, Map<String, Object>? headers, int cacheSegments) → Future<bool>
Whether the video is cached.
override
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 the request and returns the data to the socket.
override
parseAndroid(Socket socket, Uri uri, List<String> responseHeaders, int requestRangeStart, int requestRangeEnd, Map<String, String> headers) → Future<void>
Parses and responds to range requests on Android.
parseIOS(Socket socket, Uri uri, List<String> responseHeaders, int requestRangeStart, int requestRangeEnd, bool partial, Map<String, String> headers) → Future<void>
Parses and responds to range requests on iOS.
precache(String url, Map<String, Object>? headers, int cacheSegments, bool downloadNow, bool progressListen, [int priority = 1]) → Future<StreamController<Map>?>
Pre-caches data from the network.
override
push(DownloadTask task) → Future<void>
Pushes the task to the download manager for processing. If the task is already in the download manager or cache, does nothing.
override
toString() → String
A string representation of this object.
inherited

Operators

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