google / google/ExoPlayer

Allow toggling the read-only property of CacheDataSource

Open
#8,053 3 comments 0 reactions 1 assignee Claimed by @tonihei View on GitHub
enhancement low priority
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### Issue description
Flinging a `RecyclerView` with multiple `PlayerView`'s playing on screen (~6 at once) makes the scrolling stutter considerably when using `CacheDataSource`. No problem happens when using `DefaultDataSource`.
I am pooling my `Player` instances and reusing them when possible.
I'm using the `ExoDatabaseProvider` for the `SimpleCache` instance passed to the `CacheDataSource`.
Also I'm using `TextureView` for Android versions < 24.

### Reproduction steps
Populate a `RecyclerView` with multiple items having a `PlayerView` running a video. Fling `RecyclerView`.

### Version of ExoPlayer being used
`2.11.3`

### Device(s) and version(s) of Android being used
OnePlus 7t, Android 10
Samsung Galaxy S4, Android 5.1

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.