PierfrancescoSoffritti / android-youtube-player

YouTube Player library for Android and Chromecast, stable and customizable.
https://pierfrancescosoffritti.github.io/android-youtube-player/
MIT License
3.38k stars 758 forks source link

Scroll and Seekbar issue when using viewPager2 horizontally #1156

Open berkayertan opened 3 days ago

berkayertan commented 3 days ago

I'm trying to use horizontal viewpager but when i press the seekbar and try to move forward the video duration it's scrolling the video and also viewpager sample app has the same issue. How can i solve this ?

Serkali-sudo commented 2 days ago

I think easiest way to fix it is using the custom-ui. Custom ui uses native android views and it works well with viewpager when it comes to scrolling.

BerkayErtann commented 2 days ago

@Serkali-sudo Thanks i think best way is the custom ui like u said.

PierfrancescoSoffritti commented 2 days ago

You could also prevent clicks from reaching the player while scrolling.