Skip to main content
Topic: Difference between manual selection of file and activeplaylist_add_ite (Read 1791 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Difference between manual selection of file and activeplaylist_add_ite

Hallo,

I'm using foobar2000 0.9.2 Beta 4 and I'm trying to add a file to the active playlist and select it from a component. It works with help of the static_api_ptr_t<playlist_manager>()->activeplaylist_add_items() method,  the file will be added and selected but here's the problem : "Follow the cursor" will not play it when the current song has ended, it plays the next song, not the selected one. If I add it manually it works normally.

So here's the question : What is the difference between manual add and select and the call from component ? Why won't foobar2000 "follow the cursor" ?

Difference between manual selection of file and activeplaylist_add_ite

Reply #1
You need to set the the focus to your newly added item.

Difference between manual selection of file and activeplaylist_add_ite

Reply #2
Thanks again, foosion, it works now using the call static_api_ptr_t<playlist_manager>()->playlist_set_focus_item(...) to focus the cursor on the newly added playlist item.

 
SimplePortal 1.0.0 RC1 © 2008-2018