matrix-org / matrix-js-sdk

Matrix Client-Server SDK for JavaScript
Apache License 2.0
1.53k stars 580 forks source link

WebRTC is not supported in this environment #2328

Open HalilFocic opened 2 years ago

HalilFocic commented 2 years ago

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 commented 2 years ago

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

texuf commented 2 years ago

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 commented 1 year ago

Getting same error, any solution? @HalilFocic

HalilFocic commented 1 year ago

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

msl2000 commented 10 months ago

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

greynewell commented 5 months ago

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.