precache abstract method
Pre-caches the video at the specified url
.
headers
: Optional HTTP headers to use for the request.
cacheSegments
: Number of segments to cache.
downloadNow
: Whether to start downloading immediately.
progressListen
: Whether to listen for download progress.
Returns a StreamController that emits progress or status updates,
or null
if precaching is not supported.
Implementation
Future<StreamController<Map>?> precache(
String url,
Map<String, Object>? headers,
int cacheSegments,
bool downloadNow,
bool progressListen,
);