video_pool
0.6.1, released 3 months ago by abdullahtas.dev
Video orchestration library for controller pooling, visibility lifecycle, and disk caching.
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.
80Compare
Works with
Packages commonly used together with video_pool: ones it builds on, ones built on it, and its own family.
- cryptovideo_pool depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- video_playervideo_pool depends on itFlutter plugin for displaying inline video on Android, iOS, macOS, and web.
- media_kitvideo_pool depends on itCross‑platform video and audio player for Flutter and Dart
- media_kit_videovideo_pool depends on itNative implementation for video playback in package:media_kit.