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

Just stream without saving locally #778

Open stefan-reich opened 2 years ago

stefan-reich commented 2 years ago

Hi, maybe I'm missing something but I don't see an option to suppress the local saving.

I am sending all audio data to the server through a WebSocket. I don't need a local recording.

Of course I can just discard the blob in the end... but my worry is that we run out of disk space or something? I want to keep the audio stream on for hours at a time (maybe even 24/7) and was hoping not having to restart the audio regularly or similar.

TIA and thanks for this great library

Edit: I have done my own test and had opus audio streamed to the server for 12 hours or so. It worked fine except when I called stopRecording the whole page crashed. 500 MB were streamed and it appears they arrived fine at the server.

Edit 2: Does it depend on the recorder being used? I'm currently using OpusMediaEncoder.