muaz-khan / RecordRTC

RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
https://www.webrtc-experiment.com/RecordRTC/
MIT License
6.49k stars 1.75k forks source link

Audio recoding clipped in Firefox #740

Open BurninLeo opened 3 years ago

BurninLeo commented 3 years ago

White RecordRTC worked great for a long time, Firefox seems to cause compression (?) issues at the moment.

If I use the OGG audio format, and record 10 seconds, the resulting file only plays 2 seconds. If I record 30 seconds, I get a file with 6 seconds playtime.

Replication:

  1. https://www.webrtc-experiment.com/RecordRTC/ with Firefox 87.0 (64 bit)
  2. select "Mikrophone" to "ogg"
  3. start the recording (allow the browser to use the microphone)
  4. count to 10 (aloud, of course)
  5. stop the recording
  6. download the file

What I get is a file with the first 2 seconds. Same issue with OPUS format, PCM works as expected.

rajgoel commented 3 years ago

Unfortunately, I have the same problem. Works on Chrome but not on FF87.

rajgoel commented 3 years ago

Apparently, a similar issue is present with this approach https://www.geeksforgeeks.org/how-to-record-and-play-audio-in-javascript/ for audio recording. It works on Chrome, but on FF87 the recording is clipped. Looks like the problem is with Mozilla.

rajgoel commented 3 years ago

I just filed a bug report on https://bugzilla.mozilla.org/show_bug.cgi?id=1706101

rajgoel commented 3 years ago

I think this is fixed with FF88 and can be closed.