2015-10-13, 06:59
Works in Kodi 18/19
A very simple addon, inspired by the 4th gen Apple TV (Siri: "What did he say?"). It'll step back and temporarily enable subtitles.
Features
-Use Install from ZIP file.
-The addon is added under Program add-ons.
-Bind the addon to a key/button using the addon Keymap Editor or manually with the keyboard.xml file (see below).
Issues
Bind the addon to a key
Create a file called keyboard.xml in %APPDATA%\kodi\userdata\keymaps\ e.g.
C:\Users\yourusername\AppData\Roaming\Kodi\userdata\keymaps\
(http://kodi.wiki/view/Userdata)
E.g. in this case bound to the F1 key.
Check here if you want to check how to fine tune were the script is active. If you use global instead of fullscreenvideo it'll work anywhere if the video is playing in the background (e.g. Home screen).
A very simple addon, inspired by the 4th gen Apple TV (Siri: "What did he say?"). It'll step back and temporarily enable subtitles.
Features
- Step back X seconds (default 15 s).
- Enable subtitles temporarily for Y seconds (default 25 s).
- Option to step back even if subs are enabled (default disabled).
-Use Install from ZIP file.
-The addon is added under Program add-ons.
-Bind the addon to a key/button using the addon Keymap Editor or manually with the keyboard.xml file (see below).
Issues
- Every time the script toggles the subtitles the notification will show, "Subtitles English/Disabled". I haven't found a way to disable it temporarily, only permanently for everything which I don't think anybody wants. Though if you don't care about getting any notifications from Kodi just rename DialogKaiToast.xml, e.g. DialogKaiToast.xml.bak
Bind the addon to a key
Create a file called keyboard.xml in %APPDATA%\kodi\userdata\keymaps\ e.g.
C:\Users\yourusername\AppData\Roaming\Kodi\userdata\keymaps\
(http://kodi.wiki/view/Userdata)
E.g. in this case bound to the F1 key.
Code:
<keymap>
<fullscreenvideo>
<keyboard>
<f1>RunScript(C:\Users\yourusername\AppData\Roaming\Kodi\addons\script.stepbacktempsubs\default.py)</f1>
</keyboard>
</fullscreenvideo>
</keymap>