We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
现象:flutter官方的video_player在占位图和视频播放切换的时候没有黑屏,flutter_ijkplayer在网络稍差点都会出现黑屏 原因:官方video_player使用Completer (isolate)这个来初始化
final Completer<void> initializingCompleter = Completer<void>(); /// 逻辑 return initializingCompleter.future;
flutter_ijkplayer使用的是Future来初始化的
var d1 = new DateTime.now(); await _initDataSource(autoPlay); await _plugin?.setNetworkDataSource( uri: url, headers: headers, ); var d2 = new DateTime.now(); var difference = d2.difference(d1); print('duration = ${difference.inMilliseconds.toString()} ms'); _ijkStatus = IjkStatus.prepared;
在初始化时间过长的时候,黑屏会显示的特别明显,加载资源的速度也明显比官方的慢很多
希望能够在初始化资源的时候 使用Completer (isolate) 来处理
The text was updated successfully, but these errors were encountered:
No branches or pull requests
现象:flutter官方的video_player在占位图和视频播放切换的时候没有黑屏,flutter_ijkplayer在网络稍差点都会出现黑屏
原因:官方video_player使用Completer (isolate)这个来初始化
flutter_ijkplayer使用的是Future来初始化的
在初始化时间过长的时候,黑屏会显示的特别明显,加载资源的速度也明显比官方的慢很多
希望能够在初始化资源的时候 使用Completer (isolate) 来处理
The text was updated successfully, but these errors were encountered: