Jump to content
Poweramp
hansgruber

Tasker intent to select a playlist

Recommended Posts

I asked elsewhere but think it may be in the wrong forum as no response.

Does anyone know how to select a playlist using a tasker intent? I can start and stop Poweramp, but not select a specific playlist.

Share this post


Link to post
Share on other sites
On 27/08/2016 at 10:45 AM, Koumal said:

Hans,

Do you find the way to launch Poweramp playlist from tasker ?

Thanks. 

Hi,

I've found a way to interrogate the current playlist in Poweramp V3 (through Tasker), and then if it needs changing send an intent (through Tasker) to change it. If anyone is still interested in how to do it let me know and I'll post the actions...

Regards

Rowan

Share this post


Link to post
Share on other sites

I can get playlists to run, but it stays in the playlist. Do you know how to bring it back to the player view after the playlist is selected? 

Share this post


Link to post
Share on other sites

I'd like to come back to this topic...

I installed and registered Poweramp especially for being able to start it with a designated playlist and I want it to play from the beginning of the playlist.

Unfortunately, all the examples did not really help me. I checked the command reference in the java api, I tried to use these examples.

I have only one playlist which was created with Poweramp.

Regardless what combination of ending parameters in

content://com.maxmpz.audioplayer.data/playlists

I use with command 20, I get random results. Rarely it starts or resumes the playlist or it plays anything else.

I tried

/0
/1
/1/files
/1/files/0
/1/files/1

all without success. Which content parameter do I need to start a specific playlist created with Poweramp with the first title of the playlist?

Share this post


Link to post
Share on other sites
On 9/16/2017 at 4:22 PM, Rabangus said:

Hi,

I've found a way to interrogate the current playlist in Poweramp V3 (through Tasker), and then if it needs changing send an intent (through Tasker) to change it. If anyone is still interested in how to do it let me know and I'll post the actions...

Regards

Rowan

I'm interested in this Rowan. Could you post the actions to achieve this? 

 

Regards, 

 

Manuel

Share this post


Link to post
Share on other sites
12 hours ago, papete said:

I'm interested in this Rowan. Could you post the actions to achieve this? 

 

Regards, 

 

Manuel

Hi Manuel, unfortunately in the last few builds the track info exposed through intents has changed. I've had a thorough look through the Api and as far as I can find it's now no longer possible to identify the currently playing playlist. Real shame because to do anything really useful you need to know the playlist you're dealing with...

I did raise this in the below thread, but unfortunately didn't get a response that gave any answers.

 

Share this post


Link to post
Share on other sites

Should probably add, that to change currently playing playlist using Tasker you need to create a 'Send Intent' action with the following:

Action: com.maxmpz.audioplayer.API_COMMAND

Cat: None

Data:content://com.maxmpz.audioplayer.data/playlists/%plist/files

Extra: cmd:20

Target: Service

Everything else blank.

Where %plist is a variable that contains the numeric index of the playlist that you want to select. Unfortunately since the recent changes you are probably looking at finding that through trial and error. They are numbered from 1 though, in the order in which they were created.

 

Share this post


Link to post
Share on other sites
14 hours ago, Rabangus said:

Should probably add, that to change currently playing playlist using Tasker you need to create a 'Send Intent' action with the following:

Action: com.maxmpz.audioplayer.API_COMMAND

Cat: None

Data:content://com.maxmpz.audioplayer.data/playlists/%plist/files

Extra: cmd:20

Target: Service

Everything else blank.

Where %plist is a variable that contains the numeric index of the playlist that you want to select. Unfortunately since the recent changes you are probably looking at finding that through trial and error. They are numbered from 1 though, in the order in which they were created.

 

Thanks Rowan! Works like a charm. It would have been useful to get the currently playing playlist info, but this works for my needs.

 

Thanks again!

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×