I am building a web app which has a audio recording feature. I have followed the MDN document here: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder
The example in the MDN has a live demo here:
https://mdn.github.io/dom-examples/media/web-dictaphone/
I tested four browsers here: Chrome, FireFox, Safari, Edge.
Safari works the worst. It will directly generate a error after recording. Also I tested on my own website, even for the audio recorded by chrome, when it loads into Safari's tag, it will directly show errors and it cannot be played. I already opened the experimental feature Media Recorder in Safari develop menu. What can I do to make it work?
Chrome and Edge works normal. But a weird thing is, they won't preload the audio they recorded. It will show like the tag is empty. When we click the play button in the audio tag, the audio will play normally. I tried for other audios which are not recorded by browser itself, it can preload normally. Is there a way to solve this?
Firefox works the best here. I didn't find any weird behavior.
Thanks for the help.