Page 1 of 1

PowerAmp Trigger

Posted: 12 May 2014 21:36
by guuzendesu
I'm trying to get a general purpose assistant-type thing going with a closed-cover Note 3 and a headset with one button. The best (least-intrusive) way to do that would be with the "skip back" function of PowerAmp. I found the intent for "advance - back," but I can't seem to get it to register.

Would anyone care to help me figure out how to get to the "advance direction" info?
Here's what I had... http://asia-im.googlecode.com/svn-histo ... PiAPI.java
Plus the info in the "General Broadcast" trigger help, which was a huge help.
Thank you Martin, for your great product!

Re: PowerAmp Trigger

Posted: 15 May 2014 17:15
by Martin
Hi,

You could detect changing of tracks using action com.maxmpz.audioplayer.TRACK_CHANGED and following extras to access the new track information:

Code: Select all

track_info = getBundle("track");

artist = getString(track_info, "artist");
album = getString(track_info, "album");
title = getString(track_info, "title");
path = getString(track_info, "path");
duration = getInt(track_info, "dur", 0);
The action com.maxmpz.audioplayer.STATUS_CHANGED should work to detect when the player changes state from play to pause. The extras available in the intent are also printed in the log of Automagic.

Regards,
Martin