Allow toggling the read-only property of CacheDataSource
- 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
Assessment
This issue has not been assessed yet.