fs

Send MediaRecorder blobs to server and build file on backend

為{幸葍}努か 提交于 2020-11-30 12:15:09
问题 I'm working on a website using nodejs and SailsJs. My objective is send the blobs generated by MediaRecorder.ondataavailable event (which returns small blobs) to the server and after finishing recording build the complete file on the server to store it. On the browser if I push all those small blobs into an array and then do this: var blob = new Blob(recordedBlobs, {type: 'video/mp4'}); I get the complete file blob that can be uploaded to the server easily and is fully playable. I'm sending