Kodi Community Forum

Full Version: How to make playback controls fade out faster?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Currently the playback controls stay on the screen for 10 seconds if I move my mouse while a video is playing.

How do I change this to a shorter duration, like 2 seconds? Is there an XML file that can be edited to adjust this variable?
It's coded in core so disable the mouse altogether.
(2020-08-06, 00:42)Hitcher Wrote: [ -> ]It's coded in core so disable the mouse altogether.

Thanks for the quick reply! I can't disable the mouse unfortunately as it's my only means of navigating on my HTPC.

Any potential workarounds? Is it possible to disable the OSD completely perhaps? If not, would love to see an option to control the OSD duration in a future version of the skin.
As I said it's coded in core so there's nothing a skin can do to reduce the time.
You can stop the OSD appearing by editing the mouse.xml keymap.

You don't say what OS you have, for example in Windows the location is

Image

Look for <FullscreenVideo> section and add entries for

xml:

<leftclick>OSD</leftclick>
<rightclick>Info</rightclick>
<mousedrag>noop</mousedrag>
<mousemove>noop</mousemove>

so it looks like

Image

So leftclick shows OSD and rightclick shows Info but movement of mouse does not trigger anything.

Note the leftclick option for OSD is optional depending on if you think you might need it at some point.
(2020-08-06, 16:48)jjd-uk Wrote: [ -> ]You can stop the OSD appearing by editing the mouse.xml keymap.

You don't say what OS you have, for example in Windows the location is

Thanks, jjd-uk. How about for Ubuntu? I searched but couldn't find an equivalent to mouse.xml
It will be in the install folder which for Linux is normally /usr/share/kodi then from there same path as shown. Forgot to say rather than edit the file in it's original location, file should be copied to the keymap folder in Userdata so that the changes will survive any upgrades, for details including path see https://kodi.wiki/view/Userdata
Or you can download from https://github.com/xbmc/xbmc/blob/master.../mouse.xml then copy that into the Userdata keymap folder.
(2020-08-07, 02:32)jjd-uk Wrote: [ -> ]It will be in the install folder which for Linux is normally /usr/share/kodi then from there same path as shown. Forgot to say rather than edit the file in it's original location, file should be copied to the keymap folder in Userdata so that the changes will survive any upgrades, for details including path see https://kodi.wiki/view/Userdata

Worked perfectly! Thank you so much Smile
Just for your understanding noop is keymap shorthand for no operation, so in mousemove and mousedrag it forces Kodi to do nothing for those mouse actions. Then placing them in FullscreenVideo means the change only applies when playing video.