google / google/ExoPlayer

How to use exoplayer in LazyColumn with Jetpack Compose?

Open
#9,055 1 comment 10 reactions 1 assignee Assigned to @icbaker View on GitHub
needs triage question
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I am using exoplayer to play videos in a LazyColumn in Jetpack Compose. I have a single instance of the exoplayer, and use the LazyListState to play the top video when the list is scrolled. However, the scrolling is janky and I cannot achieve good performance.

I have created a minimal sample to reproduce this here: https://github.com/spencergriffin/exoplayer-compose

Is there something I am doing wrong with exoplayer that is causing such bad performance?

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.