- Set crossorigin="anonymous" as a static HTML attribute on audio/video elements so all users can use createMediaElementSource (required for Web Audio API) - Remove window.__tidalOriginExtension guards from AudioContext init/changeSource: binaural DSP, EQ, M/S processing, and audio graph now active for everyone - Route direct (non-DASH) stream URLs through getProxyUrl in player.js so non-extension users get CORS headers from the proxy for lossless/MP4 audio - Proxy preloader src as well so browser cache warms with the proxied URL - Add idempotency guard in getProxyUrl to prevent double-proxying when Shaka retries segment requests (proxied URL still contains "tidal.com" in params) - Extension users: still bypass proxy and get CDN URLs directly (unchanged) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 lines
233 B
JavaScript
5 lines
233 B
JavaScript
export const getProxyUrl = (url) => {
|
|
if (window.__tidalOriginExtension) return url;
|
|
if (url.startsWith('https://audio-proxy.binimum.org/')) return url;
|
|
return `https://audio-proxy.binimum.org/proxy-audio?url=${url}`;
|
|
};
|