video-mosaic-generator

const MosaicRender = require('./build/index').default; const mr = new MosaicRender(); const v = [ { layoutId: 1 filePath: './testfiles/1-60secs.mp4', }, { layoutId: 2 filePath: './testfiles/2-60secs.mp4', }]; const t = 'heathrow-t3';

Usage no npm install needed!

<script type="module">
  import videoMosaicGenerator from 'https://cdn.skypack.dev/video-mosaic-generator';
</script>

README

Volume Mosaic Render

Example

const MosaicRender = require('./build/index').default;
const mr = new MosaicRender();
const v = [
  {
    layoutId: 1
    filePath: './testfiles/1-60secs.mp4',
  }, {
    layoutId: 2
    filePath: './testfiles/2-60secs.mp4',
  }];
const t = 'heathrow-t3';

mr.on('progress', function (data) {
  console.log(data);
});

mr.render({
  template: t,
  videos: v,
});