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:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user