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

WebRTC is not supported in this environment #2328

Open
HalilFocic opened this issue Apr 28, 2022 · 6 comments
Open

WebRTC is not supported in this environment #2328

HalilFocic opened this issue Apr 28, 2022 · 6 comments

Comments

@HalilFocic
Copy link

HalilFocic commented Apr 28, 2022

Help needed

I am developing matrix in React Native and I am constantly getting error WebRTC is not supported in this environment

Real time messaging works fine on React Native but making/receiving calls doesn't.

Calling client.createCall returns null ( probably because it is not supported in that environment ).

Is there a way to make it work on React Native using matrix-js-sdk since there is not matrix library for react native yet.

Thanks in advance

@jpschw
Copy link

jpschw commented Jul 3, 2022

Bump! I get this error without making calls. How did you get rid of the error for messaging?

@texuf
Copy link
Contributor

texuf commented Jul 28, 2022

I get this running my integration tests as well, we already have a check around this error, maybe we can either make a global to disable, or downgrade the error to a warning?
call.ts:

    if (!supported) {
            /* istanbul ignore if */ // Adds a lot of noise to test runs, so disable logging there.
            if (process.env.NODE_ENV !== "test") {
                logger.error("WebRTC is not supported in this browser / environment");
            }
            return false;
        }

@ajaykolekar9559
Copy link

Getting same error, any solution? @HalilFocic

@HalilFocic
Copy link
Author

No,I swapped this library with Agora. Has better documentation and support

@msl2000
Copy link

msl2000 commented Nov 20, 2023

Bringing this back to life. Anybody found a solution to this problem?

@greynewell
Copy link

I'm also having this issue while attempting to init crypto inside of a React Native app. I've tried everything I can think of, but don't even know why WebRTC would be required.

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

6 participants