fix: video/audio streaming instead of blob download

Videos and audio now stream directly via URL with auth token query
param instead of downloading entire file into a JS blob. Fixes
playback of large videos (170MB+ was timing out). Images still use
blob URLs. streamUrl() added to filebrowser client and cloud store.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-04-12 00:45:42 -04:00
parent 485c4d5d98
commit 8d8130109d
4 changed files with 34 additions and 5 deletions

View File

@@ -99,6 +99,10 @@ export const useCloudStore = defineStore('cloud', () => {
return fileBrowserClient.fetchBlobUrl(path)
}
async function streamUrl(path: string): Promise<string> {
return fileBrowserClient.streamUrl(path)
}
async function downloadFile(path: string): Promise<void> {
return fileBrowserClient.downloadFile(path)
}
@@ -125,6 +129,7 @@ export const useCloudStore = defineStore('cloud', () => {
deleteItem,
downloadUrl,
fetchBlobUrl,
streamUrl,
downloadFile,
reset,
}