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

new WebRTC({ enableVideo:true, enableAudio:true }); results in a JAVA ERROR. #42

Open
dmitryr117 opened this issue Jun 15, 2020 · 4 comments

Comments

@dmitryr117
Copy link

Problem issuing new WebRTC({ enableVideo:true, enableAudio:true });
I am usin Angular to develop NativeScript app.
Upon issuing the command above I get the following error:

ERROR Error: java.lang.Exception: Failed resolving constructor for class 'co.fitcom.fancywebrtc.FancyWebRTC' with 3 parameters. Check the number and type of arguments.

Primitive types need to be manually wrapped in their respective Object wrappers.

If you are creating an instance of an inner class, make sure to always provide reference to the outer 'this' as the first argument.

Any thoughts on how to fix this?

@triniwiz
Copy link
Owner

Use the newer api

@dmitryr117
Copy link
Author

What minimum API version does it require? I tried minSdkVersion 28, but the error persists.

@dmitryr117
Copy link
Author

Ok. The reason why it was not working is because I did not put the iceServers argument there.

@triniwiz
Copy link
Owner

I was talking about this

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