ExoPlayer PlayerView 膨胀需要时间并导致显着的帧下降
com.google.android.exoplayer2.ui.PlayerView 的膨胀平均需要接近 25 到 30 毫秒。 我们在 viewpager 中使用,因此每次用户滑动页面时,由于 PlayerView 膨胀需要时间,因此会观察到明显的帧丢失。
有什么方法可以通过某些属性/配置(或)以任何其他方式进行优化?
编辑:我使用texture_view作为表面类型,app:surface_type =“texture_view”
- 在github中提出了相同的问题。 https://github.com/google/ExoPlayer/issues/10066
Inflation of com.google.android.exoplayer2.ui.PlayerView takes close to 25 to 30 ms on an average.
And we are using in viewpager, so everytime user swipes the page, because of PlayerView inflation taking time, there is significant frame drops observed.
Is there any way this can optimised with some attributes / configuration (or) in any other way?
Edit : I am using texture_view as surface type, app:surface_type="texture_view"
- Have raised issue in the github for the same. https://github.com/google/ExoPlayer/issues/10066
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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