ammarahm-ed / react-native-ijkvideo

A Cross Platform (Android & iOS) video & audio component with react-native-video like API & all formats support based on IJKPlayer FFMpeg 3.4
MIT License
25 stars 9 forks source link

Keyboard control not working #6

Closed maximilize closed 4 years ago

maximilize commented 4 years ago

When the component is created in react, it is not possible to select any buttons via remote control or keyboard anymore. It's like the video component is forcing the keyhandler focus to itself. Do you know a solution for this?

ammarahm-ed commented 4 years ago

I dont understand the issue. Which buttons are you talking about? Do you mean the hardware keyboard or remote such as TV? I have not tested it with Android TV etc because I had none.

Also mention if it is on android or iOS

maximilize commented 4 years ago

It affects android. Most apps you can control via hardware keyboard or remote control, even on non-android-tv devices. However, it seems that ijk is stealing the keyevents somehow. It makes the navigation via keyboard/remote control impossible while a video is playing.

ammarahm-ed commented 4 years ago

@maximilize Since i dont have anything to test I am not sure about it. But i will do my research to see what might be causing such an issue. Currently on the native code, there is no such thing being done by me to control the key events but maybe we need to release them or something.

ammarahm-ed commented 4 years ago

@maximilize sync with the latest changes. I think I fixed it but it is untested.

ammarahm-ed commented 4 years ago

I have applied the fix, I am closing this now.