A few video in a list overlap each other
@oceanjules is already working on this.
Since Feb 19, 2024.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 1.2.1
More version details
We are designing a social media feed for our app and we are facing a problem with with our compose implementation
in a feed we are using androidx.media3.exoplayer.ExoPlayer and via
AndroidView(
modifier = Modifier.align(Alignment.BottomCenter),
factory =PlayerView(content)
where I set a player per an item like this this.player = player
and to fit the screen size I use AspectRatioFrameLayout.RESIZE_MODE_ZOOM
it looks like a player takes all of the player Views to show a video
as a result, you can see the same video in several list items
it looks like the same issue was reported for old exo-player, however without a working solution unfortunately
Please help me to provide the best experience to our users
Devices that reproduce the issue
Pixel 5
Reproduction steps
- create a lazy column list
- add several videos in a row
- start playing them one by one
Expected result
The video should take a frame size and don't interact with a neighbour item
Actual result
Current video plays in several list items
Media
https://github.com/androidx/media/assets/2707599/62880d83-fee2-4e4c-b599-c2fcd60e1d47
Bug Report
- You will email the zip file produced by
adb bugreportto android-media-github@google.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.