Search the Community
Showing results for tags 'api'.
@maxmp Music Playlist Manager (MPM) accesses the Poweramp media database to manage playlists etc. One of the functions it offers is to play a playlist or track which works fine BUT as MPM is the active app and has the UI, Poweramp itself remains in the background Is it at all possible to bring Poweramp into full view replacing MPM, using some api call.?
Hi there, I already read several topics like this one and of course the Poweramp API documentation for MEDIA_PLAY_FROM_SEARCH here. What already works I can send an intent from tasker using the simple freeform query like this one: Action: android.media.action.MEDIA_PLAY_FROM_SEARCH Category: Default Extra: query:Midnight Oil Package: com.maxmpz.audioplayer As there is only one Artist with the name "Midnight Oil" Poweramp will correctly play all titles of the artist "Midnight Oil" with this intent. If instead of "Midnight Oil" I will put "Debut", Poweramp will play the album "Debut" from "Björk", even if I have other titles, folders and so on, which also have "Debut" in the name. What works in a strange manner With the same intent as show above, if I put "Björk Debut" instead of "Midnight Oil", then one would expect, that Poweramp also plays the album "Debut" from "Björk". But instead it will play the alphabeticaly first entry of the Album "Debut", which is "Aeroplane" and after that will play the alphabeticaly next track in my whole collection (see image below). So, why is this a problem: In the case of the mentioned album "Debut" I could solve this by using "Debut" instead of "Björk Debut" as query string. But in several other cases I have no way to get exactly the album I want. Here is another example: query:23 -> 23 is the name of an album from "Blonde Redhead" and also the name of a track of the same album. Therefore it will play the track 23. What doesn't work So, of course I tried to use the more specific type of query, the "focused query" mentioned here in the API description. But I don't get it to work. It always does nothing or only considers the query-part and ignores the focus-part. So either I am using it the wrong way or Poweramp only supports the freeform query. Here are some of my not working attempts: Action: android.media.action.MEDIA_PLAY_FROM_SEARCH Category: Default Extra: query:Björk Debut Extra: focus:vnd.android.cursor.item/album Package: com.maxmpz.audioplayer Action: android.media.action.MEDIA_PLAY_FROM_SEARCH Category: Default Extra: focus:vnd.android.cursor.item/album Extra: album:Debut Extra: artist:Björk Package: com.maxmpz.audioplayer Does anyone has a working example for using the focused query, in Tasker or plain Java? Regards, Björn
I'm attempting to use Poweramp my car audio player and am trying to simplify/automate as much as possible. I have several m3u playlists which are in my library folder. They scan and show up with Poweramp ok and work fine. I gather you need to reference playlist ids when using the API, which isn't ideal, so I've tried to ascertain these by trial and error. The problem is, sending the same id will start a different playlist on each occasion. So I have no idea what the numbers I'm sending through are actually referencing. content://com.maxmpz.audioplayer.data/playlists/[number] cmd:20 I'm replacing number by trial and error integers starting at 1. Can any one shine any light on what I may be doing wrong?