How to enable/disable subtitles through a single remote keypress
#1
Hello all,

I am trying to setup my remote to allow me to enable/disable subtitle display using a single key press. I have added the following line in the global section of my remote.xml file:

<subtitle>ShowSubtitles</subtitle>

According to the list of Action IDs on the xbmc wiki, this should "Toggle whether subtitles are shown or not".

On first press it does indeed toggle the English subtitles on, however on subsequent presses it switches to the next available subtitle language, rather than just toggling the subtitles off (which is what I want and expected it to do). It seems like its executing the NextSubtitle action instead.

Any ideas on what I'm doing wrong here?
Kodi Helix
AFTV 1st gen
Reply
#2
Pretty sure thats the correct command.

Are you sure you are pressing the key that <subtitle> is translated to in Lircmap.xml?

In addition and IMO, I would not put it under <global>. I would use <FullscreenVideo>
Reply
#3
Doh! Yes I had rather foolishly assumed that the soft key called 'subtitles' on my Harmony remote did in fact map to <subtitle>.

Moved the action to another key and it worked fine.

Thanks.
Kodi Helix
AFTV 1st gen
Reply

Logout Mark Read Team Forum Stats Members Help
How to enable/disable subtitles through a single remote keypress0