gwp_alpha_player 0.0.1
gwp_alpha_player: ^0.0.1 copied to clipboard
一个透明播放器(适配Android, iOS平台).
gwp_alpha_player_example #
添加依赖 gwp_alpha_player: ^0.0.1
在使用播放器dart文件中导入 import 'package:gwp_alpha_player/gwp_alpha_player.dart';
Getting Started #
class _MyHomePageState extends State
void _incrementCounter() { _gwpAlphaPlayerPlugin.play( "https://oss.xingyaozhibo.com/xyapp/svga/v2/taikong.mp4", (url) { print("播放完成:${url}"); }); }
@override Widget build(BuildContext context) { double height = MediaQuery.of(context).size.height * 0.8; return Scaffold( appBar: AppBar( // Here we take the value from the MyHomePage object that was created by // the App.build method, and use it to set our appbar title. title: Text(widget.title), ), body: Column( mainAxisAlignment: MainAxisAlignment.center, children: