wrend 0.3.6

A WebGL2 rendering library for Rust/Wasm & JS
Documentation
1
2
3
4
5
6
7
// web_sys does not provide this functionality out of the box 
// (perhaps because of low-ish browser support?)
// so it must be implemented manually here in JavaScript
export function captureStreamFromCanvas(canvas) {
    const mediaStream = canvas.captureStream();
    return mediaStream;
}