staylor7 / rare-diseases

Catalog of Rare Diseases
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

[STAGING] Viola audio has incorrect path and AudioContext can fail to initialize #30

Closed quinnouyang closed 7 months ago

quinnouyang commented 8 months ago

Issue

See staging site:

To reproduce

staylor7 commented 8 months ago

Do you mean the playbar at the top? That’s weird, I’m not sure why that’s happening. But the Web Audio API does require user interaction before any sound plays. Maybe we can have text at the top that gives a short intro?On Mar 14, 2024, at 8:11 PM, Quinn Ouyang @.***> wrote: See staging site:

Failed to load resource: net::ERR_BLOCKED_BY_CLIENT Failed to load resource: the server responded with a status of 404 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu

git bisect shows problematic commit: 96adaae

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

quinnouyang commented 8 months ago

Not just the playback controls, but the diagram itself. Clicking play would be a user interaction so should be valid, but perhaps we can't init an AudioContext without that first. The failed resources might be a separate issue though

quinnouyang commented 8 months ago

Slightly more fixed now but I sometimes run into some serious delay and loading issues for the sounds. Cannot replicate locally, only on staging environment.