Re: idleStreams
AF1 <AF1.atfdnb-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Sat, 5 Nov 2022 16:31:44 +0000
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
mherger wrote: > 16s is a very long time. It certainly will cause issues streaming to > players with small buffers. Is there no way you can break that up into > smaller chunks? Or could you run the plugin as part of the scanner? So the whole process (getting tracks for an SQLite query, some filtering/sorting, writing a static playlist file) can take a while. For 4000 track > 2 minutes on my 10+ year old mac! Getting the tracks takes most of the time. But even when I split the 4000 into chunks of 200 and include -idlestreams- after each iteration, it will still block the UI until it's finished. I'd like to believe that the included idlestreams after each iteration will prevent problems with streaming (haven't tested this yet) but a blocked UI for > 2 minutes is not nice either. Even if users who want to create such a huge static playlist probably know what to expect. Would be nice if I could delegate this entire task/sub (not the whole plugin) to the scanner to keep the UI unblocked. But if I use the scanner to do this, will this count as a normal scan process, i.e. trigger -Slim::Music::Import->stillScanning- and -rescan,done-? I'm asking because I block certain functions in my plugins while -stillScanning-. And I use subscriptions to -rescan, done- in many plugins to trigger actions that I wouldn't want triggered in this case. Can the scanner return a value with rescan,done that could set this rescan,done apart from the one received after a normal scan process? I use an importer in some plugins but that's part of and triggered by the normal scanning process. Do you maybe have a code example/plugin in mind that shows how a task that's not related to the normal scanning process is delegated to / handled by the scanner? Thank you. For '*bug reports*' (https://github.com/AF-1/), *FAQ* (if available) and more detailed information about my plugins, please see the '*GitHub*' (https://github.com/AF-1/) page or the *first post* in the support thread for a plugin. Please post *bug reports* for my plugins *only* on '*GitHub*' (https://github.com/AF-1/). Thank you. ------------------------------------------------------------------------ AF1's Profile: http://forums.slimdevices.com/member.php?userid=39306 View this thread: http://forums.slimdevices.com/showthread.php?t=117004