Author Topic: Show Volume setting  (Read 3353 times)

0 Members and 1 Guest are viewing this topic.

Foggy

  • $upporter
  • Contributor
  • *****
  • Posts: 86
  • Karma: 4
    • View Profile
Show Volume setting
« on: January 20, 2011, 03:51:18 PM »
Hi,

Is it possible to have a command that shows the existing volume setting.

Best wishes.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Show Volume setting
« Reply #1 on: January 20, 2011, 06:12:23 PM »
can you be more specific?  system volume?  MM, iTunes, or XBMC?

Foggy

  • $upporter
  • Contributor
  • *****
  • Posts: 86
  • Karma: 4
    • View Profile
Re: Show Volume setting
« Reply #2 on: January 20, 2011, 07:09:00 PM »
Hi James,

Yes - Sorry.

XBMC

System volume.


Best wishes.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Show Volume setting
« Reply #3 on: January 20, 2011, 08:24:04 PM »
see the attached

Foggy

  • $upporter
  • Contributor
  • *****
  • Posts: 86
  • Karma: 4
    • View Profile
Re: Show Volume setting
« Reply #4 on: January 21, 2011, 11:05:59 AM »
Cool, Thank you very much.

Best wishes.

Foggy

  • $upporter
  • Contributor
  • *****
  • Posts: 86
  • Karma: 4
    • View Profile
Re: Show Volume setting
« Reply #5 on: January 21, 2011, 11:33:42 AM »
I meant to add that I do try to understand the examples that you post in the hope it will help me in the future.

However XBMC volume went straight over my head :)

Once again, thank you & Best wishes.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Show Volume setting
« Reply #6 on: January 21, 2011, 12:15:07 PM »
there are a lot of different things going on there!  You need to know about the xbmc http api commands to know about the command GetVolume()

then you need to know what is being returned (you can see this by mousing over the command history for the action that sent the getVolume command.

then you need to know a bit about regular expressions.  We use regular expressions to extract the volume because xbmc is returning extra text that we don't want.

then we show the info.  If you look at the "what artist is this" commands you will see that they work basically the same way.

:)