After successfully converting a blob to a string using FileReader, the challenge now is to convert it back:
var reader = new window.FileReader();
reader.readAsDataURL(blob);
reader.onloadend = function() {
base64data = reader.result;
var blobToSend = base64data.substr(base64data.indexOf(',')+1);
rtcMultiConnection.send({"command":{
"recording":blobToSend,
"type":blob.type,
"size":blob.size
}});
}
The above code snippet is used in conjunction with https://github.com/muaz-khan/RTCMultiConnection. However, the main inquiry remains on how to reconstruct the blob after it has been sent. It appears that sending the blob as-is did not produce the desired results.