Skip to main content

Notice

Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: Difference between manual selection of file and activeplaylist_add_ite (Read 1935 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-2021