Kodi Community Forum

Full Version: intent extra for subtitle
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone,

could anyone tell me if there is an extra param I can include with intent in order to run video with subtitles?

Such command does run video:
Code:
adb shell am start -a android.intent.action.VIEW -n org.xbmc.kodi/org.xbmc.kodi.Splash -d http://somedomain.com/video.mp4 -t video/*

I am guessing some intent extra like "subtitle" but its not working:
Code:
adb shell am start -a android.intent.action.VIEW -n org.xbmc.kodi/org.xbmc.kodi.Splash -d http://somedomain.com/video.mp4 -t video/* -e subtitle /sdcard/subtitle.srt

Does kodi support such feature?

I am also not able to find JSON-RPC api for specifying subtitle file.
It's not currently possible to specify a subtitle file via intent (nor on the command line on desktop versions, afaik).
thanks for quick response Koying, I am looking for any solution really to play subtitles with a http hosted video without making a plugin for it. Like, is there a simple manifest (xml, json, m3u) option I could use to group video and subtitle file and have player consuming it together? Or if the video.mp4 is hosted via http, with video.srt file in the same folder, would that work? Or any other ideas?