flutter_video_caching
1.1.6, released 4 months ago by an unverified publisher
Video caching and local proxy server for Flutter video playback
What it does
It sets up a local HTTP proxy server to cache, pre-cache, and stream video content simultaneously. It supports formats like MP4 and HLS (m3u8), offering LRU-based memory and file caching.
AI-written summary of version 1.1.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to cache remote videos locally while playing them with the video_player package.
- You want to pre-cache video segments ahead of time for smoother playback.
- You handle HLS (m3u8) or MP4 streams that require custom headers or token-ignoring cache keys.
Skip it when
- Your app does not use video playback or streaming.
- You prefer an entirely native audio/video player framework that manages its own caching without a local HTTP proxy.
Strengths
- Supports multiple video formats including MP4 and HLS (m3u8).
- Provides pre-caching and simultaneous playback and caching.
- Configurable memory/storage cache limits and custom HTTP clients via Dio.
Weaknesses
- Requires platform-specific configuration to permit cleartext local HTTP traffic for the proxy server.
- Running a local HTTP server proxy introduces background lifecycle management considerations.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 9
Requires initializing the video proxy server on startup and configuring Android network security config and iOS Info.plist for local cleartext traffic.
void main() {
WidgetsFlutterBinding.ensureInitialized();
VideoProxy.init();
runApp(const HomeApp());
}
// Use with video_player
playControl = VideoPlayerController.networkUrl(url.toLocalUri());Alternatives
Packages that do the same job and could replace flutter_video_caching.
- video_player
If you do not need caching functionality and just want the standard Flutter team video player.
93Compare - just_audio
If you are focusing heavily on advanced audio playback features.
80Compare
Works with
Packages commonly used together with flutter_video_caching: ones it builds on, ones built on it, and its own family.
- cryptoflutter_video_caching depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- path_providerflutter_video_caching depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- synchronizedflutter_video_caching depends on itLock mechanism to prevent concurrent access to asynchronous code.
- dioflutter_video_caching depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- loggerflutter_video_caching depends on itAn extensible logger for printing formatted logs with levels, custom filters, and printers.
- native_dio_adapterflutter_video_caching depends on itA Dio HTTP client adapter that uses native platform HTTP stacks via cupertino_http and cronet_http.
- flutter_hls_parserflutter_video_caching depends on itDart plugin to parse HLS m3u8 master and media playlist files.