Search code examples
androidexoplayer

video overlaps using exoplayer


i have some issues with exoplayer inside a pager view, the first frame of the previous or next video overlaps with current video shown. It only happens on bigger screens like 6.6inch higher but not on smaller screen. below is the link of the issue. thanks https://drive.google.com/file/d/1_xiCfZL8-9YepDdUs_UKC_C7vgQXiEj2/view

I tried modifying the height and width of the player view but it did not solved the issue


Solution

  • If you are using jetpack compose, use clip with the composable where player view is created, as it would not allow it to overflow, specially when aspect ratio of container is different from the video.

    Eg: Image Ref