Kodi Community Forum

Full Version: How to get enabled subtitles during playback?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to know if there's a currently enabled (i.e. visible on screen) subtitle track during video playback.
Using getSubtitles() [Docs] it always returns 'eng' for an english subtitle track, even if it is not currently enabled.
If I choose 'Italian' as the subtitle track, then it returns 'ita', even if I disable subtitles completely.
It seems to be always returning the last selected subtitle track, whether enabled or disabled.

Is this a bug or is it intended to work like this?
Is there a workaround for this?

Thanks
For future visitors, this seems to be what I was looking for:
xbmc.getCondVisibility('VideoPlayer.SubtitlesEnabled') which returns a boolean
Thread marked solved.