In order to use mediasoup-client in React Native (for building Android and iOS apps):
registerGlobals()
, classes such as RTCPeerConnection
and MediaStream
(among others) will be exposed in the global scope.ReactNative
handler (or the new ReactNativeUnifiedPlan
handler) of mediasoup-client to work.