better_player_plus
適用於 Flutter 的更好影片播放器,具備多種設定選項。解決常見使用情境!
- 星標
- 72
- 分支
- 159
- 最近推送(UTC)
- 2026年9月4日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
Better Player Plus
Need anything Flutter related? Reach out on LinkedIn
Advanced video player for Flutter, based on video_player and inspired by Chewie and Better Player.
It solves many common use cases out of the box and is easy to integrate.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Features
- ✔️ Fixed common playback bugs
- ✔️ Advanced configuration options
- ✔️ Refactored, customizable player controls (Material & Cupertino)
- ✔️ Playlists
- ✔️ ListView/feeds autoplay support
- ✔️ Subtitles: SRT, WebVTT (HTML tags), HLS subtitles, multiple tracks
- ✔️ HTTP headers support
- ✔️ BoxFit for video
- ✔️ Playback speed control
- ✔️ HLS (tracks, segmented subtitles, audio tracks)
- ✔️ DASH (tracks, subtitles, audio tracks)
- ✔️ Alternate resolutions
- ✔️ Caching
- ✔️ Notifications
- ✔️ Picture-in-Picture
- ✔️ DRM (token, Widevine, FairPlay via EZDRM)
Installation
Add the dependency in your pubspec.yaml:
dependencies:
better_player_plus: ^1.3.2
Import the package:
import 'package:better_player_plus/better_player_plus.dart';
Quick start
Minimal example showing a network source:
final dataSource = BetterPlayerDataSource(
BetterPlayerDataSourceType.network,
'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
);
final controller = BetterPlayerController(
const BetterPlayerConfiguration(),
betterPlayerDataSource: dataSource,
);
// In your widget tree
BetterPlayer
(
controller
:
controller
);
Documentation
- Installation notes:
doc/install.md - Example application:
example/
Important information
This package is actively evolving. Breaking changes may appear between versions. Contributions are welcome — please open issues or pull requests.
License
Apache 2.0 — see LICENSE.
Recent Updates (v1.2.0)
- SDK Update: Dart SDK
>=3.11.0, Flutter SDK>=3.41.0, Android Media31.10.0 - iOS Fixes: Preserved playback speed across seek/pause/resume; fixed AVPlayer aspect ratio issues; added wakelock (disable auto-sleep) support
- Audio: Fixed audio track override not being cleared before applying a new one; improved HLS default audio source selection
- Controls: Fixed
controlsVisibilityStreamfeedback loop and auto-hide emit behaviour - Code Quality: Zero
dart analyzeissues — all errors, warnings and info resolved
Credits
This work builds on the great foundations of Chewie and the original Better Player. Thanks to all contributors of those projects.
Special Thanks: This project benefited greatly from Cursor AI assistance during the iOS Objective-C to Swift migration process.
使用的依賴
依賴清單 8 項
- flutter
{"sdk":"flutter"} - flutter_localizations
{"sdk":"flutter"} - collection
^1.19.1 - path_provider
^2.1.6 - wakelock_plus
^1.7.0 - flutter_widget_from_html_core
^0.17.3 - flutter_test開發依賴
{"sdk":"flutter"} - analysis_lints開發依賴
^1.0.9
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗















