google / google/ExoPlayer

PlayerView inflation taking time and causing significant frame drops.

Open
#10,066 1 comment 0 reactions 1 assignee Assigned to @icbaker View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.