matrix-js-sdk
matrix-js-sdk copied to clipboard
VoIp createNewMatrixCall react-native returns null
I'm implementing audio call in react-native using matrix js sdk, but i'm not able to use createNewMatrixCall, the function call returns null, and I'm not able to listen to event Call.incoming while all others events works perfectly!
Any work around or suggestion to make it work with react native?
the code looks like:
const w = global.window;
const doc = global.document;
if (!w || !doc) {
return null;
}
...
So presumably you don't have a window or document because react-native
How can I solved this, Is there anything I can do in order to use voip in react native?
is there any possible answer now for this?