streaming_video_cache 1.20260615.1070036
streaming_video_cache: ^1.20260615.1070036 copied to clipboard
Local caching proxy for streaming video: caches only the byte ranges actually played (not whole files), with an LRU size cap. Works with any HTTP player.
1.20260615.1070036 #
A player-agnostic local caching proxy for streaming video. Caches only the byte ranges a player actually reads (not whole files), with an LRU size cap.
VideoCacheServer— loopback HTTP proxy. Translates the player'sRangerequests into chunk-aligned upstream fetches, streaming chunk-by-chunk and stopping when the player disconnects (an open-ended request only fetches what is played). Coalesces concurrent fetches (one per chunk, one length probe per key). Auth header forwarding, open-ended ranges, HEAD, whole-file fallback. Diagnostics: low-frequencyonCacheStatus(one HIT/MISS per clip) + opt-in high-frequencyonLog(per request/chunk).CacheStoreinterface +RangeCacheStore(default file-backed): chunked range storage, per-entry LRU eviction,pin()to keep a playlist resident, persists across restarts.UpstreamClientinterface +HttpClientUpstream(defaultdart:io): pluggable transport.streamingVideoCacheVersionconstant.
Pure dart:io — iOS, Android, desktop (not web).