Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular NPM WebMWriter not defined #135

Open
miloadam99 opened this issue Nov 30, 2021 · 2 comments
Open

Angular NPM WebMWriter not defined #135

miloadam99 opened this issue Nov 30, 2021 · 2 comments

Comments

@miloadam99
Copy link

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

@Xyndra
Copy link

Xyndra commented Mar 31, 2023

same with astro/svelte

@Quicksticks-oss
Copy link

Did anyone find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants