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

Support Node.js #57

Open
shlok-ps opened this issue Sep 2, 2020 · 5 comments
Open

Support Node.js #57

shlok-ps opened this issue Sep 2, 2020 · 5 comments

Comments

@shlok-ps
Copy link

shlok-ps commented Sep 2, 2020

I am using the package v3.6.3 in nodejs with npm6.14.6
Got window not defined error, changed it to 'this' and it gave error 'document not defined'. as there are createElement codes in there. Is there a node version of it? or how can it be used?
ReferenceError: window is not defined at new VideoStreamMerger (<repo>/node_modules/video-stream-merger/dist/video-stream-merger.js:2:163)

@t-mullen
Copy link
Owner

t-mullen commented Sep 2, 2020

This module uses browser APIs and currently does not support Nodejs.

@t-mullen t-mullen changed the title window not defined on nodejs Support Node.js Sep 2, 2020
@hthetiot
Copy link
Contributor

Should be fixed by #71, running node dist/video-stream-merger.jsworks at least now.

@hthetiot
Copy link
Contributor

hthetiot commented Jul 6, 2021

Fixed in 4.0.0 release.

@t-mullen
Copy link
Owner

t-mullen commented Jul 7, 2021

NodeJS doesn't support the Canvas or WebAudio APIs - there's more work to do on this issue.

@hthetiot
Copy link
Contributor

hthetiot commented Jul 7, 2021

Well, if you expose Canvas and WebAudio Shim it should works.

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

No branches or pull requests

3 participants