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

I do not use Tasker but posted the java code (in the link above) that does launch Pa and plays a playlist. Perhaps you get some clues from it.

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
On 10/6/2018 at 9:57 AM, 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.

 

Rowan, is this working for you? Since 805 (I think) it is not working for me...

Share this post


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

Rowan, is this working for you? Since 805 (I think) it is not working for me...

Hi, yes, still working for me on 805

Share this post


Link to post
Share on other sites
11 minutes ago, Rabangus said:

Hi, yes, still working for me on 805

Thanks, I thought the upgrade broke something... I don't know why but the upgrade moved my playlist numbers... Found them and working again

Share this post


Link to post
Share on other sites

Guys I read though several posting on this topic.  I have 5 playlists. Now, when I use 

Data:content://com.maxmpz.audioplayer.data/playlists/1 and cmd:20 it plays the first playlist if I change it to 

Data:content://com.maxmpz.audioplayer.data/playlists/2 (for second playlist) it does not play the second one, it plays the first.

Is there an easy way to pick playlists? Or is that gone with the update?

 

 

Share this post


Link to post
Share on other sites

playlist keys get generated sequentially but if you for instance delete one, the sequential numbering continues so you will get gaps. Perhaps I can add something to my app New Playlist Manager to list Poweramp playlist keys with its playlist name

I have added the key to show between parenthesis

image.png.358496ca67428e5177dc145fa29ae910.png

Share this post


Link to post
Share on other sites

Wow did not know that, thanks Flyingdutchman! Very nice of you to alter your app so we can use it as a tool!

Share this post


Link to post
Share on other sites
16 hours ago, LGK said:

Wow did not know that, thanks Flyingdutchman! Very nice of you to alter your app so we can use it as a tool!

furthermore, I have previously added tasker functionality so you can automate backups and restores of your ratings and automate tag updates

 

http://www.theo.klinkweb.nl/tasker.html

 

ps let me know if it worked

 

 

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

×