Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Full-Screen Mode in Android: Modal Overlay Persists Over YouTube Video #360

Open
Rootsalman opened this issue Nov 12, 2024 · 1 comment

Comments

@Rootsalman
Copy link

Rootsalman commented Nov 12, 2024

Hi @LonelyCpp
I’m experiencing an issue with the react-native-youtube-iframe package when using it in a Modal on Android. When attempting to enter full-screen mode, the video remains within the modal's overlay instead of expanding fully, leading to an inconsistent full-screen experience.

Steps to Reproduce
Embed a YoutubeIframe component inside a Modal.
Enable full-screen mode on the video in Android.
Observe that the video attempts to go full screen but remains within the modal overlay, and repeated taps are required to fully enter full-screen mode.
After closing full screen, the modal overlay reappears above the video, interfering with the experience.

Expected Behavior
When entering full-screen mode, the modal should temporarily close, allowing the video to occupy the entire screen. On exiting full screen, the modal should restore itself without interference.

Actual Behavior
When entering full-screen mode in Android, the video stays within the modal. Closing full screen brings back the modal overlay, which can reappear above the video.

Platform: Android

Screenshot_1731416715

Could there be a way to manage or disable the modal overlay when the video goes full screen? Alternatively, is there an ideal approach for handling full-screen transitions with modals on Android?

Thank you for your time and this package!

@Rootsalman Rootsalman changed the title Video Pop-up Modal is appearing on top of full screen video in Android Issue with Full-Screen Mode in Android: Modal Overlay Persists Over YouTube Video Nov 12, 2024
@Rootsalman
Copy link
Author

Hi @LonelyCpp or anybody please respond on the above issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant