ExoPlayer PlayerView 膨胀需要时间并导致显着的帧下降

发布于 2025-01-13 20:59:40 字数 417 浏览 4 评论 0原文

com.google.android.exoplayer2.ui.PlayerView 的膨胀平均需要接近 25 到 30 毫秒。 我们在 viewpager 中使用,因此每次用户滑动页面时,由于 PlayerView 膨胀需要时间,因此会观察到明显的帧丢失。

有什么方法可以通过某些属性/配置(或)以任何其他方式进行优化?

编辑:我使用texture_view作为表面类型,app:surface_type =“texture_view”

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"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文