Fix buffering UX when transitioning from local to Qobuz tracks
- Stop playback immediately when starting a Qobuz track to prevent previous track from continuing during download - Show buffering toast while downloading Qobuz audio - Skip buffering UI for local tracks since they load instantly - Add is_local field to QueueTrack for prefetch optimization - Update prefetch to skip local tracks (no network needed) - Update all queue track builders to include is_local flag
This commit is contained in:
1 parent
3e3f89b6a8
commit
94d7d78a22
7 files changed
+50
-12
No files matched your search
@@ -586,6 +586,7 @@
|
||||
hires: t.hires ?? false,
|
||||
bit_depth: t.bitDepth ?? null,
|
||||
sample_rate: t.samplingRate != null ? (t.isLocal ? t.samplingRate * 1000 : t.samplingRate) : null,
|
||||
is_local: t.isLocal ?? false,
|
||||
}));
|
||||
|
||||
// Collect local track IDs (original positive IDs)
|
||||
@@ -667,6 +668,7 @@
|
||||
hires: t.hires ?? false,
|
||||
bit_depth: t.bitDepth ?? null,
|
||||
sample_rate: t.samplingRate != null ? (t.isLocal ? t.samplingRate * 1000 : t.samplingRate) : null,
|
||||
is_local: t.isLocal ?? false,
|
||||
}
|
||||
});
|
||||
} catch (err) {
|
||||
@@ -694,6 +696,7 @@
|
||||
hires: t.hires ?? false,
|
||||
bit_depth: t.bitDepth ?? null,
|
||||
sample_rate: t.samplingRate != null ? (t.isLocal ? t.samplingRate * 1000 : t.samplingRate) : null,
|
||||
is_local: t.isLocal ?? false,
|
||||
}));
|
||||
|
||||
// Collect local track IDs
|
||||
|
||||
Reference in new issue
Block a user