Skip to content

problem in threecap with reactjs #3

@eboujlal

Description

@eboujlal

Hello,

I am using threejs to render animation and i want to export this animation to video mp4.
When i want to use threecap library, i got an error :
TypeError: threecap__WEBPACK_IMPORTED_MODULE_7___default.a is not a constructor

And this is my code :

import THREEcap from 'threecap';


var threecap = new THREEcap({});
threecap.record({
	width: 640,
	height: 480,
	fps: 25,
	time: 10,
	format: 'mp4',
	//canvas: canvasDomElement,   // optional, slowest
	composer: this.renderer.domElement // optional, fastest
}).then(function(video) {
	video.saveFile('myVideo.mp4');
});

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