···5555 const isPlaying = untracked(this.audio.isPlaying);
56565757 // Resolve URIs
5858- const url = activeTrack
5959- ? await this.input.resolve({ method: "GET", uri: activeTrack.uri }).then(
6060- (a) => a?.url,
6161- )
5858+ const resolvedUri = activeTrack
5959+ ? await this.input.resolve({ method: "GET", uri: activeTrack.uri })
6260 : undefined;
6161+6262+ if (resolvedUri && "stream" in resolvedUri) {
6363+ throw new Error("Streams are not supported yet.");
6464+ }
6565+6666+ const url = resolvedUri?.url;
63676468 // Check if we still need to render
6569 if (this.queue.now?.()?.id !== activeTrack?.id) return;
+4
src/themes/webamp/index.js
···5252async function loadOverride(uri, autoPlay) {
5353 const resp = await input.resolve({ method: "GET", uri });
5454 if (!resp) throw new Error("Failed to resolve URI");
5555+ if (resp && "stream" in resp) {
5656+ throw new Error("Webamp does not support playing streams.");
5757+ }
5858+5559 return await loadFromUrl(resp.url, autoPlay);
5660}
5761