ncz_flutter_video 0.0.2 ncz_flutter_video: ^0.0.2 copied to clipboard
通用播放器组件,支持暂停、快进、重复、全屏横屏播放、声音大小控制与屏蔽、视频封面、自动播放、循环播放、缩放比例(默认16:9).
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add ncz_flutter_video
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
ncz_flutter_video: ^0.0.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:ncz_flutter_video/flutter_video.dart';
import 'package:ncz_flutter_video/video_view.dart';