Author Topic: Directing VC OSD to XBMC  (Read 2577 times)

0 Members and 1 Guest are viewing this topic.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Directing VC OSD to XBMC
« 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
When Voice command gets tough, use hand gestures

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Directing VC OSD to XBMC
« Reply #1 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.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: Directing VC OSD to XBMC
« Reply #2 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
When Voice command gets tough, use hand gestures

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Directing VC OSD to XBMC
« Reply #3 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.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: Directing VC OSD to XBMC
« Reply #4 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?
When Voice command gets tough, use hand gestures

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Directing VC OSD to XBMC
« Reply #5 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.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: Directing VC OSD to XBMC
« Reply #6 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>
« Last Edit: October 28, 2014, 06:53:37 PM by Haddood »
When Voice command gets tough, use hand gestures

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Directing VC OSD to XBMC
« Reply #7 on: October 28, 2014, 08:31:15 AM »
The icon.PNG in the TcpMic plugin folder might be good.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: Directing VC OSD to XBMC
« Reply #8 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 ...
« Last Edit: October 28, 2014, 06:54:20 PM by Haddood »
When Voice command gets tough, use hand gestures