Skip to content
pubscout

video_pool

0.6.1, released 3 months ago by abdullahtas.dev

Video orchestration library for controller pooling, visibility lifecycle, and disk caching.

$ flutter pub add video_pool
Source repository

What it does

Video_pool manages a fixed pool of player instances to prevent freezing, memory leaks, and overheating in video feed apps. It reuses players as the user scrolls, handles visibility tracking, thermal throttling, disk pre-fetching, and system audio focus.

AI-written summary of version 0.6.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Building TikTok, Reels, or Instagram-style video feeds
  • Needing smooth 60fps scrolling without decoder teardown and GC pressure

Skip it when

  • Playing a single isolated video player without scrollable feeds

Strengths

  • Intelligent controller pooling with zero-jank scrolling
  • Automatic thermal throttling and memory pressure management
  • Built-in disk pre-fetching and HLS fast-start tuning

Weaknesses

  • Requires media_kit platform setup for iOS and Android
  • May require platform-specific pod install steps

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
5

Follow media_kit platform preparation guides for iOS (Podfile/Swift Package Manager) and initialize MediaKit in main().

VideoPoolScope(
  config: const VideoPoolConfig(maxConcurrent: 3, preloadCount: 1),
  adapterFactory: (_) => MediaKitAdapter(),
  sourceResolver: (index) => videos[index],
  child: VideoFeedView(sources: videos),
)

Alternatives

Packages that do the same job and could replace video_pool.

  • just_audio

    You primarily need advanced audio streaming and playback features instead of video feed orchestration.

Works with

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