elsmr / mp3-mediarecorder

šŸŽ™MediaRecorder ponyfill that records audio as mp3

Home Page:https://mp3-mediarecorder.elsmr.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with pause/resume in Safari

ktsour opened this issue Ā· comments

If you pause the recording, resume the recording and the record again, the 2nd part of the recording is muted when you listen to it.
You can even try it in your live demo.

I had a look at this issue a couple times, but can't find a solution for now. In Safari the AudioContext doesn't resume. I'm going to add it to the README as a known limitation for now.

commented

I workaround for this can be - during pause do not pause the source node, instead, skip sending data to the worker while paused in the onprocessaudio event.

Tried pausing-resuming recoding in https://mp3-mediarecorder.elsmr.dev in Safari 15.6 and 2nd part of recording is not muted. Possibly Safari has improved over the recent years. I didn't try the mobile one.