Page 1 of 1

Read actual playlist

Posted: September 8th, 2018, 8:26 pm
by StefWe
Hello,

i try to build a mpdclient for ubuntu touch. I made my first steps and play, stop or setVolume works.

Now i want to read the actual playlist items. But i have no idea which function i need to call to get this informations.
I use lib version 2.9

I would appreciate any help.

Re: Read actual playlist

Posted: September 9th, 2018, 2:53 pm
by max
mpd_send_list_queue_meta, mpd_recv_entity
Look at the mpc source code for examples.

Re: Read actual playlist

Posted: September 11th, 2018, 11:00 am
by StefWe
thank you for your fast answer. i will look on the mpc source code

Re: Read actual playlist

Posted: October 6th, 2018, 11:36 pm
by StefWe
is it correct that in the entity i get with mpd_recv_entity is only the first item? For example a song?
How can i get the rest of the playlist?

thanks for your help.

Re: Read actual playlist

Posted: October 7th, 2018, 8:57 am
by max
Call mpd_recv_entity again until it returns NULL.

Re: Read actual playlist

Posted: October 18th, 2018, 9:04 pm
by StefWe
Works now! Thank you for this hint!