better_player
1.37.0, released 9 days ago by hasoft.pl
Flutter video player with native engines, HLS/DASH/DRM, caching, PiP, ads and feeds.
What it does
Better Player provides a single widget that plays video on Android, iOS, Web, Windows, macOS and Linux using the platform’s native media engine. It supports adaptive streaming, DRM, offline caching, subtitles, picture‑in‑picture, playlists, ads and telemetry.
AI-written summary of version 1.33.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a production‑grade video player with native performance and advanced features like DRM, caching, PiP and ads.
- You want a single package that works across all major platforms without pulling in separate UI or platform plugins.
- You need built‑in subtitle support and playlist/feeds for vertical video feeds.
Skip it when
- You only need basic video playback and prefer the lightweight video_player package.
- You are building a very small demo or prototype and want minimal dependencies.
Strengths
- Native performance via platform engines
- Full feature set (DRM, caching, PiP, ads, telemetry)
- Unified controller and UI
- Federated architecture keeps binary size small
Weaknesses
- Large dependency set (platform packages)
- Requires platform‑specific setup for some features (e.g., DRM licenses)
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 17
Add better_player to pubspec. No build_runner needed. For DRM or caching you may need to add platform permissions (e.g., internet, storage).
import 'package:better_player/better_player.dart';
AspectRatio(
aspectRatio: 16/9,
child: BetterPlayer.network(
"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
),
);Alternatives
Packages that do the same job and could replace better_player.
- video_player
Lightweight, core Flutter video playback without extra features.
93Compare
Works with
Packages commonly used together with better_player: ones it builds on, ones built on it, and its own family.
- xmlbetter_player depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- path_providerbetter_player depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- cupertino_iconsbetter_player depends on itAsset package providing Cupertino icon font for Flutter
- material_uibetter_player depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- cupertino_uibetter_player depends on itOfficial Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.
- wakelock_plusbetter_player depends on itKeep the device screen awake across mobile, desktop, and web platforms.
- visibility_detectorbetter_player depends on itWidget that reports visibility changes of its child