Loxone audio player does not show all library entries
I've added a music network share to the Lox-Audioserver Beta-19, and all data were imported correctly from the system. I can also see that the database includes 6293 tracks, 470 albums and 1152 artists.
But unfortunately the Loxone audio player does not show all database entries. I've recognized that the player for example just shows the first 200 albums. That means that in my case 270 albums are not displayed and cannot be selected in the Loxone audioplayer app.
The same problem is by selecting by Artists, Tracks or even the Folders.
Page 4 of 10 from the album database view within Lox-Audioserver:
Last displayed album in Loxone audioplayer app:
Please do not hesitate to ask if you have further questions.
Thanks for the detailed report.
It isn't the paging. I drove a 470-album library through the same code path the app uses, page by page, and every page comes back complete: the server was handing over all 470 of your albums correctly. The app was throwing the answers away.
The cause is audio/cfg/scanstatus. The app asks for it once, right after connecting, and reads the state out of a field: data[0].scanning. We answered with a bare [0] instead of [{"scanning": 0}], so that read comes back undefined — which the app takes as "a scan is running", and nothing ever clears it. The library browser then believes the library is being re-indexed, and in that state it silently discards every batch of rows it is handed. It flips into that state about 200 ms after you open the library screen, so whatever arrived in that first moment is what you see, and everything after it is dropped.
That explains the shape of what you're seeing: it hits albums, artists, tracks and folders alike, the cut lands on a multiple of 50 (the app's page size), and nothing looks wrong in the server log — every request was answered, the answers just never made it onto the screen.
Fixed: the status now travels in the scanning field the app actually reads. It will be in the next beta.
When you have it, could you confirm the full library shows up? And if anything is still cut off, the number of entries you see for albums, artists and tracks separately would help — if it lands on exactly 200 everywhere again, there is a second cause underneath this one.
Thank you for working on this topic, but unfortunately the problem is still present. I've also seen that the number of displayed objects (Albums, Artists, Tracks) is different in the Apple I-Pad, Android mobile phone or within the Loxone Windows app. But I can confirm that it is always a multiple of 50 objects.
Apple I-Pad: Albums: The system displays the first 350 albums out of 470 (first 7 of 10 pages). Artists: The system displays the first 350 artists out of 1152 (first 7 pages out of 24). Tracks: The system displays the first 200 tracks out of 6293 (first 4 of 126 pages). Folders: All folders are displyed
Android Samsung Galaxy S25: Albums: The system displays the first 450 albums out of 470 (first 9 of 10 pages). Artists: The system displays the first 200 artists out of 1152 (first 4 pages out of 24). Tracks: The system displays the first 200 tracks out of 6293 (first 4 of 126 pages). Folders: All folders are displayed
Windows Loxone App: Albums: The system displays the first 100 albums out of 470 (first 2 of 10 pages). Artists: The system displays the first 200 artists out of 1152 (first 4 pages out of 24). Tracks: The system displays the first 150 tracks out of 6293 (first 3 of 126 pages). Folders: The first 150 folders out of 195 are displayed.
Please do not hesitate to ask if you need further information.
Should be fixed with https://github.com/sonn-audio/core/commit/06da20bfe46f48aae377c73c6f9723c0a23a5869
Will be included in the next beta
This Problem has been Solveig with Beta-21. Thank you very much.