alpha_player_plugin 0.0.1 alpha_player_plugin: ^0.0.1 copied to clipboard
用于播放mp4透明视频的插件,对字节跳动官方原生组件AlphaPlayer的封装
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add alpha_player_plugin
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
alpha_player_plugin: ^0.0.1
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:alpha_player_plugin/alpha_player_simple_view.dart';
import 'package:alpha_player_plugin/alpha_player_view.dart';