ecoacoustics / web-components

https://oe-web-components.netlify.app/
MIT License
1 stars 0 forks source link

Audio elements sometimes fail to pre-fetch audio #103

Open hudson-newey opened 1 month ago

hudson-newey commented 1 month ago

Sometimes the audio elements (<audio>) fail their pre-fetching, however, this does not prevent the audio from actually playing when the play button is pressed.

Looking at the error messages we're getting a CORS error, but there is also no content in the response. Making me think that the lack of CORS header is because we are never receiving a response

image

This bug seems to be intermediate, occurs randomly, and does not impact the functionality of the component past taking a small fraction of time longer to play audio


We have observed this during user testing where the audio elements would sometimes fail to fetch audio, and result in a non-playable spectrogram.