PowerAmp Trigger

Post your questions and help other users.

Moderator: Martin

Post Reply
guuzendesu
Posts: 62
Joined: 15 Jan 2014 08:25

PowerAmp Trigger

Post by guuzendesu » 12 May 2014 21:36

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!

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: PowerAmp Trigger

Post by Martin » 15 May 2014 17:15

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

Post Reply