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.54k stars 1.75k forks source link

Corrupted recorded audio #751

Open sadi304 opened 3 years ago

sadi304 commented 3 years ago

Sometimes recording happens and completed successfully but later we saw that only it recored with 46 bytes with no duration basically a corrupted recording. Its happening in some user's devices. So its became difficult to debug and find out the root cause for this

RecordRTC version: 5.5.9
started recording audio stream.
Using recorderType: T
StereoAudioRecorder is set to record number of channels: 1
Desired sample-rate: 16000
Recorder state changed: recording
Initialized recorderType: T for output-type: audio
Recorder state changed: stopped
audio/wav -> 46.0 Bytes

It frequently happens in ios safari but thats not an issue, the issue is sometimes it happens with chrome (windows) also.

Not sure if its the problem with the library itself or not. Can anybody share any help to find out the root cause for this if faced similar issue?