I am trying to use getUserMedia to get the stream of the camera. For that I understood, it is impossible because this function is not yet implemented in ios 14.4 or at least not authorized.(error not allowed)
So I saw that the only way to get the stream is to use this cordova plugin below: https://github.com/cordova-rtc/cordova-plugin-iosrtc
My problem is when i install it: npm i cordova-plugin-iosrtc
i get an error when i build on ios:
If anyone managed to install it that would be great to help me out. Thank you.
⚠️ ld: Could not find or use auto-linked framework 'WebRTC'
❌ Undefined symbols for architecture arm64
Symbol: OBJC_CLASS$_RTCMediaConstraints Referenced from: objc-class-ref in PluginRTCPeerConnectionConstraints.o
❌ ld: symbol(s) not found for architecture arm64
If someone has succeeded to install it, it would be great to help me. Thank you.
Finally i found the solution. the iosrtc plugins works with capacitor with this part in your podfile :
If that can help someone :)