ccapture.js icon indicating copy to clipboard operation
ccapture.js copied to clipboard

Angular NPM WebMWriter not defined

Open miloadam99 opened this issue 4 years ago • 2 comments

I'm using angular 12 and have tried many different ways to include the webm-writer.

This error occurs when I do ccapture.capture(): WebMWriter is not defined at new CCWebMEncoder (CCapture.js:283) at new CCapture (CCapture.js:633) at visualizer.service.ts:149 at Generator.next () at asyncGeneratorStep (asyncToGenerator.js:3) at _next (asyncToGenerator.js:25) at asyncToGenerator.js:32 at new ZoneAwarePromise (zone.js:1387) at asyncToGenerator.js:21 at VisualizerService.exportVisuals (visualizer.service.ts:147)

let ccapturer = new CCapture({ verbose: true, display: true, framerate: framerate, motionBlurFrames: 0, quality: 100, format: "webm", timeLimit: this.audioPlayer.soundDuration?.value, frameLimit: 0, autoSaveTime: 0, });

"scripts": [ "node_modules/ccapture.js/build/CCapture.min.js", "node_modules/ccapture.js/src/webm-writer-0.2.0.js" ],

using package github:aceslowman/ccapture.js#npm-fix

miloadam99 avatar Nov 30 '21 09:11 miloadam99

same with astro/svelte

Xyndra avatar Mar 31 '23 09:03 Xyndra

Did anyone find a solution?

Quicksticks-oss avatar Mar 20 '24 22:03 Quicksticks-oss