Can we script events of Play/Pause music in PowerAmp (or such kinds of the others) with only LLX?
Can we script events of Play/Pause music in PowerAmp (or such kinds of the others) with only LLX?
I wouldn’t use widgets as possible…
]]>
< ![CDATA[
There is a poweramp API here: http://forum.powerampapp.com/index.php?/topic/1034-poweramp-api-lib-and-sample-applications-updated-06-march-2014/
You should be able to send play/pause/etc commands using broadcast intents. There is a sample application but it’s a bit complex. I would suggest to use only what is defined in https://github.com/maxmpz/powerampapi/blob/master/poweramp_api_lib/src/com/maxmpz/poweramp/player/PowerampAPI.java
You probably have to send a broadcast intent through a script, with some of the values ACTION_API_COMMAND and one of Commands. I didn’t dig more, maybe someone here already implemented something similar.
]]>
< ![CDATA[
For general music player actions, broadcast intents:
var intent = new Intent(“com.android.music.musicservicecommand”);
intent.putExtra(“command”,command);
LL.getContext().sendBroadcast(intent);
where command can be one of: “togglepause”,”pause”,”previous”,”next”,”stop”
(untested)
]]>