Remapping Vero 4k Remote Volume keys

I control the volume only through my A/V receiver’s remote, so the Vero 4K’s remote’s volume buttons are redundant for me. I would like to use them to mark videos as watched/unwatched.

I have read up on Kodi keyboard mappings (https://kodi.wiki/view/HOW-TO:Modify_keymaps) and thought I understood it. In the debug log, I found entries like these when pressing the volume keys:

2025-02-08 08:36:43.312 T:773     debug <general>: Keyboard: scancode: 0x72, sym: 0xae, unicode: 0x00, modifier: 0x0
2025-02-08 08:36:43.312 T:773     debug <general>: HandleKey: volume_down (0xf0b8) pressed, window 10025, action is VolumeDown
2025-02-08 08:36:43.340 T:884     debug <general>: Thread Timer 3322740992 terminating
2025-02-08 08:36:43.368 T:773     debug <general>: Keyboard: scancode: 0x72, sym: 0xae, unicode: 0x00, modifier: 0x0
2025-02-08 08:36:44.931 T:787     debug <general>: CLibInputKeyboard::ProcessKey - using delay: 750ms repeat: 80ms
2025-02-08 08:36:44.931 T:885     debug <general>: Thread Timer start, auto delete: false
2025-02-08 08:36:44.949 T:773     debug <general>: Keyboard: scancode: 0x73, sym: 0xaf, unicode: 0x00, modifier: 0x0
2025-02-08 08:36:44.950 T:773     debug <general>: HandleKey: volume_up (0xf0b9) pressed, window 10025, action is VolumeUp

From this I assumed that I could create an entry in my userdata/keymaps/keyboard.xml:

<keymap>
        <Videos>
                <keyboard>
                        <volume_up>markaswatched</volume_up>
                        <volume_down>markasunwatched</volume_down>
                </keyboard>
        </Videos>
</keymap>

However, this has no effect and I don’t know why.

I also tried

                <remote>
                        <volumedown>markasunwatched</volumedown>
                        <volumeup>markaswatched</volumeup>
                </remote>

but this has no effect either.

What am I missing?

I have solved it. The right command to use was ToggleWatched (I am not sure if there is a separate explicit command for just “mark as watched” or “mark as unwatched”, but I’d be happy to know.)

My keyboard.xml is thus:

<keymap>
	<Videos>
		<keyboard>
			<volume_up>ToggleWatched</volume_up>
		</keyboard>
	</Videos>
</keymap>
1 Like

Great! Might be useful for someone else.

1 Like

You might find my guide that is more specific to the OSMC remotes to be helpful. The watched status action is toggle only but you didn’t need to add mappings for it. Holding down the play button will already perform this function. You might find some advantage programing them for PageUp/PageDown or NextLetter/PrevLetter for aiding library navigation.

2 Likes

Thanks for the link to that comprehensive guide!

You are right, long-press the play button will also toggle the status. But if I want to go through a list and very quickly change the watched status, I’m so much faster if I can do that at a quick press rather than a long press.

Just a heads up, if your changing watched status as a one-off type of thing you might go one step further and just plug in a keyboard and use the arrow keys along with “w” to make things go even faster.