PlayerView inflation taking time and causing significant frame drops.
Open
enhancement
low priority
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Inflation of com.google.android.exoplayer2.ui.PlayerView takes close to 25 to 30 ms on an average.
And we are using exoplayer in viewpager, so every time user swipes the page, because of PlayerView inflation taking time, it is causing significant frame drops.
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"
Contributor guide
Assessment
This issue has not been assessed yet.