News:

HOT TIP! Exploring the commands packaged in VC's standard configurations is a great way to learn how to build your own. You can also clone a command as a starting point: just right-click and select "Clone" (or type Alt-C).

Main Menu

Directing VC OSD to XBMC

Started by Haddood, August 02, 2014, 09:57:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Haddood

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
When Voice command gets tough, use hand gestures

jitterjames

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.

Haddood

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
When Voice command gets tough, use hand gestures

jitterjames

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.

Haddood

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?
When Voice command gets tough, use hand gestures

jitterjames

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.

Haddood

#6
Quote from: 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.

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


<?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>
When Voice command gets tough, use hand gestures

jitterjames

The icon.PNG in the TcpMic plugin folder might be good.

Haddood

#8
Quote from: jitterjames on October 28, 2014, 08:31:15 AM
The icon.PNG in the TcpMic plugin folder might be good.

yes it is ....  :bignod :bignod
revised the example above to use that icon ...
When Voice command gets tough, use hand gestures