react-native-windows
react-native-windows copied to clipboard
Need to support firing touch and keyboard events for Video when it is full screen
This issue needs to be sovled in order to support react-native-video community module fully. Issue is when MPE is in full screen mode, it is moved from its original place in the tree to under FullWindowMediaRoot. Since RNW relies on listening PreviewKeyEvent and TouchEvent on the react root element, it is no longer be able to get the events once MPE is in full window. There are similar issues for Popup and Flyout, we solved it by listening to these events directly on the element. We should do the same for MPE, with a bit more caution that events should be ignored when MPE is not in full screen mode to avoid firing events twice.
Proposal:
- Add optional parameters to CreatView interface between RNW and native module, hookup pointer and keyboard event listeners to the view instance if flag returns true.
- Add view object into a global table of ignored objects, and ignore firing keyboard and pointer events for those objects in the global event handler registered on the root object.