@calipsa/video-utils
Version:
Video utilities
14 lines • 444 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const stream_1 = require("stream");
exports.default = (buffers) => {
const imagesStream = new stream_1.PassThrough();
// repeat for every image...
for (const buf of buffers) {
imagesStream.write(buf, 'binary');
}
// then finally end the stream
imagesStream.end();
return imagesStream;
};
//# sourceMappingURL=buffersToStream.js.map