Exception in "new Device()" in mediasoup-client on react native

Hi Mediasoup Team,

I have installed mediasoup-client in react-native project on windows 10.

I have improted Device like:
import { Device } from ‘mediasoup-client’;

then called:

try {
device = new Device();
} catch (error) {
if (error.name === ‘UnsupportedError’) {
console.error(‘browser not supported’);
}
}

Getting error.name === ‘UnsupportedError’ error.

Any help or hint will be greatly appreciated.

Have you actually read the docs?

I got it. Thanks, Great documentation.