better_video_player
Advanced video player based on video_player.
Install Started
- Add this to your pubspec.yaml file:
dependencies:
better_video_player: ^1.4.0
- Install it
$ flutter packages get
Normal usage
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
placeholderx
fullscreenx
progress indicatorx
tip when wifi interruptedx
auto play when resumex
null safety