retifrav / retifrav.github.io

Mirror of my blog, the original thing is at https://decovar.dev/
https://retifrav.github.io
Other
13 stars 2 forks source link

159-kodi-remote-control-app #16

Open retifrav opened 5 years ago

retifrav commented 5 years ago

XBMC/Kodi remote control application comments.

ralts00 commented 4 years ago

Thanks for the tutorial, right now I'm going to start reading it and doing the exercise. I know that there are many remote control apps, but none of them have the necessary well done, for example play and pause with the screen locked, enter remote control mode with gestures. Greetings, I'll tell you how it went :)

TassSinclair commented 3 years ago

Nice, thanks for documenting. I notice the codebase still separates the directional operations from seek operations, did you have any luck getting them to operate dynamically based on Kodi's state?

retifrav commented 3 years ago

What do you mean? It's two different commands, for example Player.Seek and Input.Right, isn't it?

TassSinclair commented 3 years ago

That's true. I think I misinterpreted part of the blog post.

In my case I'm planning to make the arrow keys alternate between seek and directional input, depending on if the OSD is showing.

retifrav commented 3 years ago

Right, then yes, as I recall, you should query the player state first. In fact, I think, I was just lazy to do that and that's why I simply binded seek command to a different shortcut.