-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebRTC #11
Comments
Original request: ionic-team/capacitor#2944 |
This would be nice! |
👍 |
@phairow Upvote the original post so people can sort by it. |
Sure thing |
it would be awesome to have this pugin |
As far as I can tell, without this there is no way to use |
It is not just |
Yeah |
Interesting. The same code works fine in a browser environment or maybe it is not called in a browser environment. When deploying the code mobile, I get the error |
@bizready it's a limitation of iOS. This issue here is the only possible fix. It has to be supported in Capacitor since iOS does not have it by default. There is a Cordova plugin, but it doesn't work with Capacitor. https://github.com/cordova-rtc/cordova-plugin-iosrtc |
Thanks @rwwagner90. I am experimenting with using https://github.com/cordova-rtc/cordova-plugin-iosrtc and it is very promising! |
@bizready as I mentioned, that Cordova plugin does not work with Capacitor. |
@rwwagner90 - I am using Quasar framework (one code base for web, mobile, and desktop). I can easily build code for Cordova or Capacitor. That way, I am in a good situation! |
@bizready sure, but then you are not using capacitor and this feature request is for capacitor. Those of us using capacitor are still stuck. |
For the time being (POC), I am ok in using Cordova. I want to use Capacitor. I do know that Capacitor can use Cordova plugins, that does not mean that isoRTC can be readily used in Capacitor. I am thinking that with some custom code, may be isoRTC can be used in Capacitor until we have Capacitor specific plugin? |
There is actually a bug filed in the webkit bugtracker: https://bugs.webkit.org/show_bug.cgi?id=208667 If you want to push Apple to fix that issue you can follow the instructions in the comments to show Apple that you are affected by this missing feature. |
I saw a comment somewhere from the Capacitor team saying it won't work. I forget where I saw it. |
I have it(iosRTC) working with capacitor. Only odd issue is having to manage the binary within node_modules folder so it gets picked up on sync. |
@phairow how did you get it working? |
https://github.com/phairow/pubnubchatrcionic You can see my repo. You will see most of the settings I had to do documented in custom/publish.md. The final step was to disable bitcode for the app. |
This plugin would be nice! |
In the era of Zoom and telemedicine the WebRTC plugin is really necessary. |
|
Hi, |
@dwieeb From my current tests it seems that According to https://bugs.webkit.org/show_bug.cgi?id=208667 the reason is that capacitor uses the custom URL scheme |
@7freaks-otte Looks like that's being addressed: WebKit/WebKit@ff60f0a |
|
Doest https://github.com/cordova-rtc/cordova-plugin-iosrtc work with capacitor ? |
Yes it does work with Capacitor. |
Thank you for your answer @danielehrhardt butI didn't succes to install it on my project Can i use this plugin ? Or how can i install this plugin on my ionic capacitor project ? |
It is on your side. I have it running since several months now in my ionic capacitor app. |
I installed it like that and i put this code in my podfile: post_install do |installer| Did I miss something ? |
@iometrine I haven't tried "cordova-plugin-iosrtc-capacitor" yet, so I'm just guessing until I have time to do so: As far as I understand, the plugin exposes the iOS workaround as |
My problem is when i try to install the plugin iosrtc i can't pass the first command: for information i try to follow this: |
I would skip this step for now as you only need to do it before Apple App Store submission. Try to get it running on a real device first. |
I never did run this command. |
when i install cordova-plugin-iosrtc in my capacitor project with npm install cordova-plugin-iosrtc Can you help me ? |
I 've got this error: |
any idea ? |
hello, @danielehrhardt @7freaks-otte apparently cordova-plugin-iosrtc doesn't work on capacitor. |
It does work 🙈 |
@danielehrhardt when i install it and when i build on xcode i've got many errors "undefined symbol" like objc_class$_RTCMediaConstraints |
@danielehrhardt can you say something constructive except that it works? |
https://github.com/danielehrhardt/ionic-capacitor-iosrtc-test |
thank you @danielehrhardt it works now.
But with the code in your podfile it works like a charm:
Now I can acces to the stream of the camera with navigator.getUserMedia Thank you again for your help :) |
@imhoffd Hi! I'm still seeing |
are you using cordova or capacitor? Do you use navigator.getUserMedia or navigator.mediaDevices.getUserMedia? We need futher information if you want we help you. |
@iometrine Thanks for getting back! I'm using Capacitor 2.4.6 and codrova-plugin-iosrtc is working for me, just wanna confirm if the webkit issue is actually fixed as imhoffd mentioned, so we can do without the plugin. |
Capacitor Plugin With Native Webrtc would be nice. Just like react-native-webrtc . |
Did someone moved the the Native 14.3 WebRTC implementation? Did worked flawless. I removed iosrtc and set the xCode Version to 12.3 |
I am trying I have set the permission in the info.plist as well.
i am trying on Xcode 12.4 and for ios 14.4. Tried both emulator and phone. Can someone please help. |
Some news of my side. I migrate from capacitor V3 and for me the version of the plugin 6.0.21 doesn't work but 6.0.20 works. |
@danielehrhardt add your plugin to awesome-capacitor if that is useful please take time to star the repo as well :) |
it is 2024! |
I believe the only possible workaround is to use a NativeScript community plugin with WebRTC integration or to use cordova-plugin-iosrtc |
Plugin Request
Name: WebRTC
Package:
@capacitor-community/webrtc
Platform(s)
iOS
Existing Solutions
Description
Ability to access MediaDevices.getUserMedia() natively for iOS to work with WebRTC.
The text was updated successfully, but these errors were encountered: