Need help with Keymap for Next / SkipNext / PageUp - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: Need help with Keymap for Next / SkipNext / PageUp (/showthread.php?tid=343242) |
Need help with Keymap for Next / SkipNext / PageUp - badbob001 - 2019-04-22 I had been trying to get the fastforward/rewind buttons on my firetv remote to skip to the next/previous video. When mapping to Next/Previous or SkipNext/SkipPrevious, it seems to ignore the assignment and default to fastforward/rewind. When I connect a keyboard, pageup/pagedown does exactly what I want but mapping the remote buttons to pageup/pagedown still result in fastforward/rewind. I also have the fastforward/rewind buttons mapped to pageup/pagedown in globally and that works fine to pageup/down lists, but they just don't behave as expected during full screen video. Below is my keymap. Some entries seems redundant or unnecessary, but I'm still explorer a way to make it work.
So I'm not sure if this is a general kodi issue or something specific to the android build. RE: Need help with Keymap for Next / SkipNext / PageUp - badbob001 - 2019-04-23 Updated 18.1 to 18.2 and it kind of seems worse: PageUp and PageDown on a real keyboard now no longer jump to the next/previous video. So now i don't know if I should still try to troubleshoot the keymap if the desired function may not even work anymore. Also, this page doesn't even show commands SkipNext or SkipPrevious so maybe sometime during the life of kodi these commands were replaced by simply Next and Previous? RE: Need help with Keymap for Next / SkipNext / PageUp - badbob001 - 2019-04-23 I think this may be a specific bug with the android version where SkipNext and SkipPrevious don't work. To test this, I load the following on both windows and my firetv, both running 18.2. When viewing music videos, windows is able to skip to previous and next video. On android, SkipNext does nothing and SkipPrevious goes to the start of the current video. RE: Need help with Keymap for Next / SkipNext / PageUp - scott967 - 2019-04-24 (2019-04-23, 08:07)badbob001 Wrote: I think this may be a specific bug with the android version where SkipNext and SkipPrevious don't work.What happens if you use PlayerControl(next) and PlayerControl(previous)? scott s. . RE: Need help with Keymap for Next / SkipNext / PageUp - badbob001 - 2019-04-26 I've tested with three android devices: firetv cube, firetv 4k stick, and pixel xl (phone). Both firetv devices are fire os6, which is equivalent to Android Nougat (Android 7.1.2, level 25). The pixel phone is on Android Pie (API level 28). I pair a bluetooth keyboard to each and use the following keymap:
On the pixel phone, all three button combinations work as expected in kodi. On the firetv devices, Next is ignored and Previous results in a rewind to the start of the video. But if I open up youtube, which is simply the youtube running on the silk browser, and open a video playlist, the rewind and fastforward buttons on the keyboard will youtube to jump to the previous or next video. So the os itself can recognize those buttons. Was the android version of kodi built for a particular android api level? This posting mentions that start with api 26, android's handling of the media button event is different: https://stackoverflow.com/questions/45960265/android-o-oreo-8-media-buttons-issue Quote:In Android 8.0 (API level 26) the handling of media button events is different: Here is more info on android's guideline on handling media buttons: https://developer.android.com/guide/topics/media-apps/mediabuttons Quote:Handling media buttons in an active media sessionIn kodi's log, I see entries like this: Quote:2019-04-26 00:52:32.825 T:12170 DEBUG: CXBMCApp::onReceive - Got intent. Action: android.intent.action.MEDIA_BUTTONand Quote:2019-04-26 00:53:01.863 T:12170 INFO: Got MEDIA_BUTTON intent: 87, up:falseThe use of android.intent.action.MEDIA_BUTTON seems to indicate that kodi's media button code is from at most android 5.0 api 21. Perhaps some logic is needed to handle different android versions? But it works on android 9's api 28 so maybe the newest api fixes a compatibility issue in an earlier api? But I'm not sure why the same issue occurs when mapping to non-media buttons like pageup or home. The underlying code for next/previous may also be affected by different android api levels. Full debug logs here: https://paste.kodi.tv/kecifubide.kodi In this session, I navigate to my Music Videos, view a video, and use each of the six assigned keys three times. RE: Need help with Keymap for Next / SkipNext / PageUp - badbob001 - 2019-04-26 Just tried the same test on my retired FireTV 1 device, which is Fire OS 5 - Android 5.1 (API Level 22). Exact same problems, so perhaps the next/previous issue has never worked on firetv devices? I guess it could be an issue with Leia so I'll try a downgrade later. I see some threads that say this issue is new with Leia: https://forum.kodi.tv/showthread.php?tid=339375 https://forum.kodi.tv/showthread.php?tid=331475 So this could be two issues:
|