Skip to content
pubscout

flutter_video_caching

1.1.6, released 4 months ago by an unverified publisher

Video caching and local proxy server for Flutter video playback

Unverified publisher
$ flutter pub add flutter_video_caching
Source repository

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.

  • just_audio

    If you are focusing heavily on advanced audio playback features.

Works with

Packages commonly used together with flutter_video_caching: ones it builds on, ones built on it, and its own family.