Skip to content

Angular NPM WebMWriter not defined #135

@miloadam99

Description

@miloadam99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions