androidx / androidx/media

A few video in a list overlap each other

Open
#1,107 17 comments 8 reactions 1 assignee View on GitHub

@oceanjules is already working on this.

Since Feb 19, 2024.

bug
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
  1. create a lazy column list
  2. add several videos in a row
  3. 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 bugreport to android-media-github@google.com after filing this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.