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

Seems not to work in browser! #2

Open
elmerbulthuis opened this issue Oct 17, 2017 · 1 comment
Open

Seems not to work in browser! #2

elmerbulthuis opened this issue Oct 17, 2017 · 1 comment

Comments

@elmerbulthuis
Copy link

I get a Module._create_encoder_and_decoder is nog a function at new OpusEncoder.

Is this library supposed to work in a browser environment?

@izy521
Copy link
Owner

izy521 commented Oct 17, 2017

Oh, no, I didn't design this to work in the browser. This was for my DiscordApp lib. But, since this is Emscripten, I believe it's browser-ready.

You need to include the CJOpus.js file, not Opus.js. Then you can access the methods in the Module namespace in your browser. But, you miss out on it being a class.

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

2 participants