PierfrancescoSoffritti / android-youtube-player

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

FullScreen in Fragment #673

Open bobobekturdiyev opened 3 years ago

bobobekturdiyev commented 3 years ago

I used player in Activity and it is working fine. Recently, I changed UI and moved the player in fragment, and called it in viewpager. And now, I have an issue with fullscreen. When I click on the fullscreen button, it is swiping between fragments. And player is not filling the screen. How can I solve it?

matteopasotti commented 3 years ago

I have created a similar issue but in my case it doesn't go full screen inside an activity. Can you check if is it still working for you when inside an activity ? Because otherwise it means that the full screen mode is completely broken

matteopasotti commented 3 years ago

Solved it. It seems that it works fine if you do not use a ContraintLayout.

Check my answer here : https://github.com/PierfrancescoSoffritti/android-youtube-player/issues/667