VoxCommando

Help and Support (Using VoxCommando) => Kodi (XBMC) Frodo / Gotham / Isengard / Jarvis => Topic started by: Haddood on August 02, 2014, 09:57:39 PM

Title: Directing VC OSD to XBMC
Post by: Haddood on August 02, 2014, 09:57:39 PM
I am totally new to XBMC (just retired WMC) ...
I was wondering if there is a way on XBMC is running and in focus that we can make all OSD messages appears inside XBMC OSD

thanks
Title: Re: Directing VC OSD to XBMC
Post by: jitterjames on August 02, 2014, 10:11:01 PM
Yes, in the xJson plugin settings you can enable this, although I'm not a huge fan of it myself.  You can also edit dialogkaitoast.xml in your XBMC skin if you want more control over the popup.  I think it is possible to disable the popup sound for example.

Or if you disable "true fullscreen" in XBMC then you can use the regular VC OSD popups, provided that it is all running on the same system.  Unfortunately, depending on your setup, true fullscreen may be necessary in order to get smooth video playback.
Title: Re: Directing VC OSD to XBMC
Post by: Haddood on August 02, 2014, 10:47:59 PM
James thank you for the fast reply ....
 it is showing the command rather than the reply ...

example:
I say "what time is it?" OSD in XBMC shows : what time is it (82):
VC replies "9:32 pm" and shoes VC OSD with the same text and nothing shoes in XBMC
Title: Re: Directing VC OSD to XBMC
Post by: jitterjames on August 02, 2014, 11:07:58 PM
Yes. That's the OSD for recognised commands and alternates.

For user generated OSD you must use an xJSON action, you can't redirect your existing OSD.showtext actions.
Title: Re: Directing VC OSD to XBMC
Post by: Haddood on August 03, 2014, 12:56:23 PM
Thank you James will work with that.

I read a bit and gui.shownotification support showing an image ... the examples I found in the forum did not have image parameter. is it supported vc plugin?
Title: Re: Directing VC OSD to XBMC
Post by: jitterjames on August 03, 2014, 01:37:23 PM
If the XBMC JSON api supports it then it is just a matter of passing the correct parameters, correctly formatted.  One challenge will be to pass a valid image path.
Title: Re: Directing VC OSD to XBMC
Post by: Haddood on October 28, 2014, 04:39:35 AM
If the XBMC JSON api supports it then it is just a matter of passing the correct parameters, correctly formatted.  One challenge will be to pass a valid image path.

solved, all that is needed make the path with double slash... now all is needed a nice PNG file from VC icon.  ;)

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.7-->
<command id="777" name="XBMC sample notification" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Results.SetLastResult</cmdType>
    <params>
      <param>{Path.VC}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.Replace</cmdType>
    <params>
      <param>\</param>
      <param>\\</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>XJson.Raw</cmdType>
    <params>
      <param>GUI.ShowNotification</param>
      <param>"image":"{LastResult}\\plugins\\TcpMic\\icon.PNG","title":"Hey There...","message":"How YOU doin?"</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>
Title: Re: Directing VC OSD to XBMC
Post by: jitterjames on October 28, 2014, 08:31:15 AM
The icon.PNG in the TcpMic plugin folder might be good.
Title: Re: Directing VC OSD to XBMC
Post by: Haddood on October 28, 2014, 06:26:05 PM
The icon.PNG in the TcpMic plugin folder might be good.

yes it is ....  :bignod :bignod
revised the example above to use that icon ...