Describe the bug
When we have the video player rendered on the screen and another visual element is covering it, the user's "clicks" on the top element cause the video player to play/pause.
To Reproduce:
Place a video player on the screen. Pop-up a modal dialog above it. Click on the a portion of the modal dialog that overlaps the video player.
The video player plays and pauses. It registers the click events as if it was not covered.
Expected behavior:
We expect the click events to not register on the video player and be captured by the overlapping element.
Flutter Doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.5, on macOS 11.4 20F71 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.57.1)
[✓] Connected device (1 available)
Additional context
none.
Thank you very much for your help and this wonderful widget. It's a huge help to us.
Related Research:
Doing some additional research on the topic, I noticed I could not find reports of this issue with regards to video players, however, I could find them with regards to iframes.
This package seems to be a "shim" that one can wrap around any element that "should" be treated as an overlay on top of an iFrame. It intercepts the clicks and passes them back to the proper element it wraps.
https://pub.dev/packages/pointer_interceptor
Here's the issue as reported to Flutter:
flutter/flutter#54027