developmentseed / bioacoustics-frontend

Frontend code for the Google Bioacoustics project that's used by A2O Search
https://search.acousticobservatory.org/
MIT License
1 stars 0 forks source link

fix: Initialise MediaRecorder in Safari with mp4 mimetype #136

Closed oliverroick closed 1 year ago

oliverroick commented 1 year ago

Fixes #135

Safari can't play webm recordings so the file validation gets stuck when determining the duration of the audio and never loads the file. I've changed the MediaRecorder initialisation to use mp4 instead, which breaks in Chrome and Firefox so we need to awkwardly initialise in a try..catch block.