Mp4CacheExporter class

Builds a complete MP4 file from the existing range cache.

The exporter uses the same DownloadTask cache keys as UrlParserMp4, so it reuses segments already loaded by playback. If a segment is missing and downloadMissingSegments is true, only the missing range is downloaded.

Constructors

Mp4CacheExporter({UrlParserMp4? parser})

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

export(String url, {Map<String, Object>? headers, Duration timeout = const Duration(seconds: 30), bool downloadMissingSegments = true, int priority = 5}) Future<File?>
Exports url to a complete MP4 file.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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