fix: resolve queue_item_id from track_id, fix loadQconnectQueue, push queue on connect
Three fixes for QConnect seekbar and queue sync: 1. Position reports now include currentTrackId from frontend. Backend looks up queue_item_id by matching track_id against QConnect queue state when renderer sync state has no cached value. This resolves the root cause of seekbar showing position 0 on controllers. 2. loadQconnectQueue changed from fire-and-forget (void) to proper error handling with logging at every step. Added logging before isQconnectConnected check to diagnose silent failures. 3. When TransportConnected event fires while QBZ is already playing, automatically push the local queue to QConnect server so controllers immediately see the correct tracks.
This commit is contained in:
3 files changed
+95
-6
No files matched your search
@@ -415,8 +415,12 @@ export async function loadQconnectQueue(
|
||||
startIndex: number = 0,
|
||||
shuffleMode: boolean = false
|
||||
): Promise<boolean> {
|
||||
console.log('[QConnect/LoadQueue] called: trackCount=%d startIndex=%d', trackIds.length, startIndex);
|
||||
const qconnectConnected = await isQconnectConnected();
|
||||
if (!qconnectConnected) return false;
|
||||
if (!qconnectConnected) {
|
||||
console.warn('[QConnect/LoadQueue] skipped: transport not connected');
|
||||
return false;
|
||||
}
|
||||
|
||||
const origin: QconnectTrackOrigin = 'qobuz_online';
|
||||
const admission = await evaluateQconnectAdmission(origin);
|
||||
|
||||
Reference in new issue
Block a user