Open trackedsupport opened 3 years ago
I have exactly the same question. I need to sync the recording with the indexDb to later upload it to the server. So even if the user closes the app window the recording will not be lost
I have exactly the same question. I need to sync the recording with the indexDb to later upload it to the server. So even if the user closes the app window the recording will not be lost
Hi , any progress so far? stuck with the same issue. regards
I ended up making my own solution.
I ended up making my own solution. Could you please provide a simple demo for me to learn
I used https://dexie.org/. Something like this should work.
var db = new Dexie("Recordings");
db.version(1).stores({ blobs: "++id" });
recorder = new MediaRecorder(media_stream);
recorder.ondataavailable = function(e) { db.blobs.put({ blob_data: e.data }) }
recorder.start(5000)
I am trying to save the blobs from the ondataavailable callback to local disk storage (indexeddb) so then I can later grab and upload.
So then I can later retrieve and update to the server (hopefully looping over the blobs)...
Is there a way to do this? It looks like you can only store the complete blob and retrieve only that.