Jump to content

Genre Intents. How do they work?


iosifak
 Share

Recommended Posts

		content://com.maxmpz.audioplayer.data/genres
		content://com.maxmpz.audioplayer.data/genres/#/files
		content://com.maxmpz.audioplayer.data/genres/#/files/meta
		content://com.maxmpz.audioplayer.data/genres/#/files/#
		content://com.maxmpz.audioplayer.data/genres/files

Tried all of these with:

# -> Genre Name

# -> Genre Index -- Order on  Genres list

# -> Random Numbers

Nothing worked. Where can I find my genre IDs?

Link to comment
Share on other sites

Using an app called Manifestviewer shows all the intents Poweramp exposes.

I see no intent as shown in your tasker config.

The nearest  service and intent that might do something is. I do not know enough about tasker though to fill in the blanks

<service
            android:label="Player Service"
            android:name="com.maxmpz.audioplayer.player.PlayerService">
            <intent-filter>
                <action
                    android:name="com.maxmpz.audioplayer.API_COMMAND"/>
            </intent-filter>
            <intent-filter>
                <action
                    android:name="com.maxmpz.audioplayer.API_COMMAND"/>
                <data
                    android:scheme="file"/>
            </intent-filter>
            <intent-filter>
                <action
                    android:name="com.maxmpz.audioplayer.API_COMMAND"/>
                <data
                    android:mimeType="vnd.android.cursor.item/vnd.maxmpz.row"
                    android:scheme="content"/>
            </intent-filter>
        </service>

 

Link to comment
Share on other sites

I am using that intent you mentioned: com.maxmpz.audioplayer.API_COMMAND

with cmd:20 extra

and content://com.maxmpz.audioplayer.data/genres/1/files data url

And it doesn't work while it does work with content://com.maxmpz.audioplayer.data/playlists/1/files

 

This is the documentation: 

https://github.com/maxmpz/powerampapi/blob/master/poweramp_api_lib/src/com/maxmpz/Poweramp/player/PowerampAPI.java

Link to comment
Share on other sites

The value 20

public static final int OPEN_TO_PLAY = 20;

but i guess there needs to be a selection of genres first

the text reads:

# means some numeric id (track id for queries ending with /files, otherwise - appropriate category id).

The only reference to genres is in cats(category)

public static final class Cats {
  public static final int ROOT = 0;
  public static final int FOLDERS = 10;
  public static final int GENRES_ID_ALBUMS = 210;
  public static final int ALBUMS = 200;
 

public static final int GENRES = 320;

So perhaps value 320 needs to be used and some data ="Rock"

?.

Link to comment
Share on other sites

https://s.amsu.ng/R5Mqdp6TbO0N

My tasker is too complicated for a screenshot. Here is how I start playing rock music. There are countless other tasks and profiled that I use in order to make a remote control using an old bt mini keyboard for my car. Automatically starting music playlists and navigation and changing between genres using the keyboard. Itcs sweet 

Link to comment
Share on other sites

  • 1 year later...
On 7/18/2018 at 12:30 PM, iosifak said:

https://s.amsu.ng/R5Mqdp6TbO0N

My tasker is too complicated for a screenshot. Here is how I start playing rock music. There are countless other tasks and profiled that I use in order to make a remote control using an old bt mini keyboard for my car. Automatically starting music playlists and navigation and changing between genres using the keyboard. Itcs sweet 

Can you post how you got it? I'm getting crazy with Poweramp intents that doesn't work for this... Thanks. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...