• Announcements

    • andrewilley

      Poweramp v3 Beta-test Build 790 Now Released   04/29/2018

      Poweramp v3 BETA TEST preview build 790, including brand new user interface, has now been released - 30 April 2018. This is not quite feature-complete yet, so only install if you are happy to test with a slightly reduced set of options.  Missing features should be completed during May. Please report any issues in the testing forum thread, and remember to backup your previous build before testing.  
eric.alva

Manipulating the Queue?

2 posts in this topic

In the syncing app I'm developing, I'd like to give the user the option to enqueue a playlist - either replace the queue contents or add to the queue. I saw previous discussions regarding playlist creation and manipulation, so I wanted to make sure I can do this before attempting to develop this functionality. Can I programmatically delete queue entries and insert into the queue?

 

Here's the primary reason for this: I have various playlists that use ratings and last played, and I combine these lists to simulate a "radio station" of sorts. Higher rated songs play more frequently and songs only repeat based on some last played criteria. As it stands, I have to manually clean the queue and insert the contents of my "Rock Station" playlist into the queue via the Poweramp UI. I rarely select music to play, I just run off the queue all the time, so I have to do this after every sync.

 

As for the playlists themselves, I just put M3U and PLS in place so any player can pick them up. 

Share this post


Link to post
Share on other sites

I have the same question.

Is it possible to read out the current queue (which is the next song to be played (by ID would be ok))?

 

And Is it possible to manipulate the queue (remove song, add songs at a certain position (also by id))?

 

Edit: To be more precise:

I don't mean the "queue", which is displayed in the library. I mean if I play e.g. all Songs of a certain genre with shuffle enabled, I want to know, which Song will be played, when I hit the "next" button. Is this possible? Or is this calculated dynamically?

 

Martin

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