i suppose the end goal might shed light on this
it would be preferable to have the action taken user configurable instead of defaulting to showinfo, i made some modifications to a custom build
here
https://github.com/xbmc/xbmc/blob/master....cpp#L1427
i changed the if clause to only require showinfo=true to be present and set to true in order for the resulting action to be "showinfo"
if (targeturl.GetOption("showinfo", value) && value == "true")
we are already
only acting on intents GET_CONTENT and action.VIEW due to the if clause above it
so when issuing the same intent without showinfo=true, requiring both showinfo and the param true it performs the show information function as it used to
omitting showinfo=true it falls to the else here -
https://github.com/xbmc/xbmc/blob/master....cpp#L1450
now we can start playback using -
am start -n org.xbmc.kodi/.Main -a android.intent.action.GET_CONTENT -d "videodb://movies/titles/337?showinfo=false"
or
am start -n org.xbmc.kodi/.Main -a android.intent.action.GET_CONTENT -d "videodb://movies/titles/337"
(instead of showing info)
i made 1 more modification here to resume playback instead of asking, again should be user configurable but since im building it im the user and using
my preference -
https://github.com/xbmc/xbmc/blob/master....cpp#L1456
item->SetStartOffset(-1); //STARTOFFSET_RESUME
i wasnt sure what to include to get the constant so i just hard coded it and noted its intended constant name
now if i can figure out how to detect this operation i would like the skin (Estuary) to be able to skip the home screen from Startup.xml if we are automatically starting playback
so, Startup.xml becomes this -
xml:
<?xml version="1.0" encoding="UTF-8"?>
<window>
<onload condition="String.IsEmpty(System.StartupIntent)">ReplaceWindow($INFO[System.StartupWindow])</onload>
<onload condition="!String.IsEmpty(System.StartupIntent)">ReplaceWindow(fullscreenvideo)</onload>
<controls />
</window>
at this point the decision can be made by VideoFullScreen.xml to return to the Home window or simply Quit() kodi when playback stops, returning instead to the android Home - assuming it was started from the intent
as soon as i figure out how to introduce a variable like startupintent i should have this working - in my own copy