Integrate SIP.js with React Native

6.3k Views Asked by At

Is there a way to integrate SIP.js (both audio and video calling are needed) with React Native? Importing the library itself is easy enough, but the issues I'm running into are:

  • WebRTC support: instead of using the browser's WebRTC functionality (which isn't present in a react native app), I included react-native-webrtc, and modified SIP.js source code to use those. I got past WebRTC support errors, but I don't know if it actually works, because of the following issue.
  • Attaching media: SIP.js expects to attach the call audio and video to <audio> and <video> elements in the browser (https://sipjs.com/guides/attach-media). Is there an existing implementation of a bridge or similar solution to use react native components with SIP.js call media?
0

There are 0 best solutions below