2021-11-21, 02:29
I am developing a small script addon to do a "binary search" style seek when playing a video to more easily skip to the start of the show or past an advertisement.
I would like to be able to bind this to a key when the addon is installed. (Currently I am using the KeyMap Editor addon to do this, but that seems awkward for a user of my addon to setup)
Is it possible to add a keymap section via an addon, or something similar, maybe in code. to add something like:
<keymap>
<FullscreenVideo>
<keyboard>
<key id='2'>RunAddon(com.shartrec.skipit)</key>
</keyboard>
</FullscreenVideo>
</keymap>
I would like to be able to bind this to a key when the addon is installed. (Currently I am using the KeyMap Editor addon to do this, but that seems awkward for a user of my addon to setup)
Is it possible to add a keymap section via an addon, or something similar, maybe in code. to add something like:
<keymap>
<FullscreenVideo>
<keyboard>
<key id='2'>RunAddon(com.shartrec.skipit)</key>
</keyboard>
</FullscreenVideo>
</keymap>