![]() As Blobs are immutable, I don't know how to keep appending data as it's received. However this will still eventually run out of data. Var concatenatedBlob = new Blob(arrayOfBlobs) I also assume I can trivially concatenate all of the Blobs currently in my array somehow to play more than one second: // Something like this (untested) Of course this only plays the first 1 second of video. Var video = document.getElementsByTagName("video") I know that a Blob URL can be generated and played like so: var src = URL.createObjectURL(arrayOfBlobs) My goal is to stream this audio/video data to an HTML5 element. So the code roughly looks like so: var arrayOfBlobs = Every second a new Blob is generated and appended to my array. Each Blob contains 1 second of audio/video data. ![]() I'm using Blobs for now but maybe a Uint8Array or something would be better). I have an array of Blobs (binary data, really - I can express it however is most efficient.
0 Comments
Leave a Reply. |