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

write blobs to disk or indexd db storage? #783

Open sambhav6496 opened 2 years ago

sambhav6496 commented 2 years ago

i am using RecordRtc to record screen and getting blob every 2 minutes. i want to store blob in indexdb or disk storage. I tried using record rtc write to disk but it did not work for me. this.recorder = RecordRTC([this.screen, this.camera], { type: "video", mimeType: "video/webm;codecs=h264", numberOfAudioChannels: 1, desiredSampRate: 16000, frameInterval: 30, bufferSize: 1024, timeSlice: 20000, getNativeBlob: true, ondataavailable: function (blob) { console.log(blob); RecordRTC.writeToDisk(blob); self.blobData.blob = blob; self.blobData.blobSize = blob.size; self.invokeSaveBlob(); },