Skip to content

How to use exoplayer in LazyColumn with Jetpack Compose? #9055

@spencergriffin

Description

@spencergriffin

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions