streaming_video_cache library

A player-agnostic local caching proxy for streaming video: caches only the byte ranges actually played (not whole files), with an LRU size cap.

Classes

CacheStore
Storage backend for VideoCacheServer, addressed in fixed-size chunks.
CacheUsage
Snapshot of cache usage for diagnostics.
HttpClientUpstream
Default UpstreamClient backed by dart:io's HttpClient.
RangeCacheStore
Fixed-size, chunked, byte-range disk cache with an LRU size cap.
UpstreamClient
Transport used by VideoCacheServer to fetch upstream bytes. Inject your own (e.g. backed by package:http, dio, auth-refreshing, or a test fake) to control how/where bytes are fetched — the cache logic stays the same.
UpstreamResponse
Result of an upstream byte-range fetch.
VideoCacheServer
A loopback HTTP server that proxies a remote video and caches only the byte ranges the player actually reads (via a CacheStore).

Constants

streamingVideoCacheVersion → const String
The version of this package. Keep in sync with pubspec.yaml.