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.61k stars 1.76k forks source link

Chrome canary error: DOMException: Failed to execute 'start' on 'MediaRecorder': There was an error starting the MediaRecorder #839

Open hercul1017 opened 1 year ago

hercul1017 commented 1 year ago

Chrome is fine but canary (Version 115.0.5750.0 ) started to give following error for version RecordRTC 5.6.2:

DOMException: Failed to execute 'start' on 'MediaRecorder': There was an error starting the MediaRecorder

:65 DOMException: Failed to execute 'start' on 'MediaRecorder': There was an error starting the MediaRecorder. at MediaStreamRecorder.record (https://localhost:44363/Scripts/RecordRTC/RecordRTC.min.js?nocache=1.1.0.21:15:24267) at initRecorder (https://localhost:44363/Scripts/RecordRTC/RecordRTC.min.js?nocache=1.1.0.21:15:788) at Object.startRecording (https://localhost:44363/Scripts/RecordRTC/RecordRTC.min.js?nocache=1.1.0.21:15:455) at https://localhost:44363/Scripts/custompage.js?nocache=1.1.0.21:59:25

Can anyone help?

ESatOH commented 1 year ago

Can anyone help?

viniciusarre commented 1 year ago

I recently ran into this issue when trying to upload an audio file to the latest version of chrome (114). I was able to fix it by changing the type and mimeType to audio/webm.

It was breaking when trying to upload a wav. So maybe that is what is breaking?

Hope it helps!

Arvin8613 commented 6 months ago

plz check the params you passed to RecordRTC. I've been facing the same problem since the stream I passed to navigator.mediaDevices.getUserMedia is {audio: false, video: true}. However, I passed RecordRTC mimeType with audio/wav. There are conflict. Because the stream is muted(without audio).

Change mimeType to video/webm might resolve this issue.