Add subtitle to currently playing Kodi video#483
Merged
LivingWithHippos merged 2 commits intoJul 11, 2026
Merged
Conversation
Kodi's Player.AddSubtitle JSON-RPC method lets you attach a subtitle to a video that is already playing, instead of having to cast video and subtitle together as a fresh Player.Open call. This adds that command to KodiApi/KodiRepository, fetching the active player id first via Player.GetActivePlayers since AddSubtitle needs it. On the download details screen, files recognized as subtitles (srt, vtt, sub, etc, based on the existing extension icon map) now show an extra "Add subtitle to Kodi" button next to the existing cast buttons. It opens the same service picker dialog used elsewhere, filtered down to Kodi devices since this isn't something VLC casting supports here, and sends the subtitle to whatever is currently playing on the picked device.
LivingWithHippos
approved these changes
Jul 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Kodi's Player.AddSubtitle JSON-RPC method lets you attach a subtitle to a video that is already playing, instead of having to redownload the video and pick the files together like described in #362.
On the download details screen, files recognized as subtitles (srt, vtt, sub and the other extensions already in the icon map) now show an extra "Add subtitle to Kodi" button next to the existing cast buttons. It opens the same service picker dialog used elsewhere, filtered down to Kodi devices since VLC casting does not support this here, and sends the subtitle to whatever is currently playing on the picked device. The active player id is fetched first through Player.GetActivePlayers since AddSubtitle needs it.
Closes #362