dmnsgn / canvas-record

Record a video in the browser or directly on the File System from a canvas (2D/WebGL/WebGPU) as MP4, WebM, MKV, GIF, PNG/JPG Sequence using WebCodecs and Wasm when available.

Home Page:https://dmnsgn.github.io/canvas-record/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide bundled/minified file for CDN support

vincerubinetti opened this issue · comments

Would be nice to be able to use this library from a script tag, from an npm cdn, e.g. https://unpkg.com/canvas-record@latest

unpkg has not been the best for ESM packages to be honest. I'd recommend https://esm.sh/ and its different options (?bundle-deps, ?no-bundle...):

<script type="module">
  import {
    Recorder,
    RecorderStatus,
    Encoders,
  } from "https://esm.sh/canvas-record@5.0.0";
</script>