VideoCaching class

Provides video caching and parsing utilities for different video formats. Supports parsing, caching, and pre-caching of video resources (e.g., MP4, HLS/M3U8).

Constructors

VideoCaching.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

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

Static Methods

parse(Socket socket, Uri uri, Map<String, String> headers) Future<void>
Parses the given uri and handles the video request via the appropriate parser.
parseHlsMasterPlaylist(String url, {Map<String, Object>? headers}) Future<HlsMasterPlaylist?>
Parses the HLS master playlist from the given url.
precache(String url, {Map<String, Object>? headers, int cacheSegments = 2, bool downloadNow = true, bool progressListen = false}) Future<StreamController<Map>?>
Pre-caches the video at the specified url.