Author Topic: Sample code  (Read 1117 times)

Offline svidouse

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Sample code
« on: December 23, 2015, 07:42:18 am »
Hi,

Could you provide me actions and parameters for the luup.call_action ?

I can play music, say text, but how to stop/pause music, change volume, ... ?

Thanks !

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 857
  • Karma: +63/-8
Re: Sample code
« Reply #1 on: December 23, 2015, 10:19:59 pm »
Install AltUI (you won't regret it) and then using AltUI, go to the DLNA device and look at its Actions Tab. Then sit back and have a stiff drink.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Sample code
« Reply #2 on: December 26, 2015, 06:26:15 am »
You can use these commands:

luup.call_action("urn:micasaverde-com:serviceId:MediaNavigation1", "Pause", {}, ID)
luup.call_action("urn:micasaverde-com:serviceId:MediaNavigation1", "Stop", {}, ID)