Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wangyng/better_video_player
Advanced video player based on video_player
https://github.com/wangyng/better_video_player
flutter video-player
Last synced: 3 months ago
JSON representation
Advanced video player based on video_player
- Host: GitHub
- URL: https://github.com/wangyng/better_video_player
- Owner: WangYng
- License: bsd-2-clause
- Created: 2021-02-28T08:32:30.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-02T07:23:59.000Z (4 months ago)
- Last Synced: 2024-09-29T12:05:08.144Z (3 months ago)
- Topics: flutter, video-player
- Language: Dart
- Homepage:
- Size: 3.73 MB
- Stars: 14
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# better_video_player
Advanced video player based on video_player.
## Install Started
1. Add this to your **pubspec.yaml** file:
```yaml
dependencies:
better_video_player: ^1.3.2
```2. Install it
```bash
$ flutter packages get
```## Normal usage
```dart
AspectRatio(
aspectRatio: 16.0 / 9.0,
child: BetterVideoPlayer(
controller: BetterVideoPlayerController.configuration(
BetterVideoPlayerConfiguration(
placeholder: CachedNetworkImage(
imageUrl: kVideoThumbnail,
fit: BoxFit.cover,
),
),
),
dataSource: BetterVideoPlayerDataSource(
BetterVideoPlayerDataSourceType.network,
kVideoUrl,
),
),
)
```## Feature
- [x] placeholder
- [x] fullscreen
- [x] progress indicator
- [x] tip when wifi interrupted
- [x] auto play when resume
- [x] null safety