在 android 原生上调用 mediaPlayer.stop() 时 flutter_vlc_player 滞后
我正在使用 flutter_vlc_player 在 Android 和 ios 上播放视频。
当我处置播放器控制器时,它会导致几帧卡顿。 当我调试本机 Android 代码时,我发现 void dispose()
中的 mediaPlayer.stop()
花费了大约 40 毫秒才能完成,导致卡顿。我在 PageView 中使用了播放器,并将控制器放置在页面转换的中间,因此卡顿很明显。
有没有解决方案或解决方法可以使用户界面看起来流畅?
I'm using flutter_vlc_player for video playback on Android and ios.
When I dispose the player controller, it cause jank for a few frames.
When I debug the native android code, I see that mediaPlayer.stop()
in void dispose()
took about 40ms to complete, causing the jank. I used the player inside PageView and dispose the controller in the middle of page transition, so the jank is noticeable.
Is there a solution or workaround to make the ui look smooth?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论