sillsdev / web-languageforge

Language Forge: Online Collaborative Dictionary Building on the Web and Phone.
https://languageforge.org
MIT License
44 stars 29 forks source link

bug: audio recording and playback is mostly broken on iOS and MacOS Safari #1791

Open megahirt opened 7 months ago

megahirt commented 7 months ago

Describe the bug On iOS and MacOS Safari:

On iOS:

On MacOS:

Expected behavior Audio recording in LF is a two step process:

Screenshots Coming soon

megahirt commented 7 months ago

Additional information that I've uncovered from testing:

The audio is in fact being recorded and saved to the file system in all three of these cases, however the encoding + container is causing playback issues (confirmed via ffprobe analysis):

I confirmed the existence of these files by doing a send/receive after the recordings were saved and then saw them in FLEx's AudioVisual folder.

I also tested playback in FLEx from all three of these files and they all playback fine in FLEx even with the erronious webm extension.

At this point is seems like there is a bug where safari records as aac/m4a but the file saves at .webm. We should detect safari and write the correct file extension.

I do not know if Safari can be made to record as opus/webm but we should investigate that as well. Probably best to record in the same format cross-platform.

A second bug is that Safari doesn't seem to be able to playback opus/webm. More investigation needed.

TODO Testing:

megahirt commented 7 months ago

A potential work around until the filename bug is fixed: