flutter_ijkplayer
flutter_ijkplayer copied to clipboard
controllerWidgetBuilder
controllerWidgetBuilder: (mediaController) { return DefaultIJKControllerWidget( doubleTapPlay: true, currentFullScreenState: true, controller: null, ); }
加了controllerWidgetBuilder属性后,报错
The getter 'textureId' was called on null.
我还缺少其它参数吗?
// 初始化 void initState() { loadingvideo(); super.initState(); }
// 销毁 @override void dispose() { controller.dispose(); super.dispose(); }
// -------------------------------------------------------------
// method
// 加载视频 loadingvideo() async { await controller.setNetworkDataSource( "https://www.sample-videos.com/video123/mp4/720/big_buck_bunny_720p_20mb.mp4", ); }