flutter_ijkplayer icon indicating copy to clipboard operation
flutter_ijkplayer copied to clipboard

controllerWidgetBuilder

Open a642815311 opened this issue 5 years ago • 1 comments

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", ); }

a642815311 avatar Dec 06 '19 03:12 a642815311

image

CaiJingLong avatar Dec 06 '19 03:12 CaiJingLong