Apprtc iOS in Swift 2.x
For those who are looking for Apprtc code in Swift 2 with features like Video Mute, Audio Mute, Rotation support, you can refer to this link.
The code is now updated with March 2016 version of Webrtc. I am considering writing a cordova plugin. For those who require any help/clarification can comment here. I will try to reply ASAP.
Checkout https://okchanges.com/ for more of my blog articles or my services
Checkout https://whichidiot.com, a free mobile number lookup service to detect legitimate business or scam/fraud
Hi Mahabali thank you for this code example! really great work, it is helping me a lot. I have a question, for the server side what did you use to mount http://apprtc.appspot.com/?, I might need something similar.
Thanks!
LikeLike
I currently connet to apprtc.appspot.com itself. There are various server codes like peerJS Webrtc ( search in github). You can make use of that. Check https://github.com/Mahabali/BonjourWebrtc . It does not have a server at all.
LikeLiked by 1 person
Hi Mahabali…Thanks for sharing the app. If I want to connect my localserver for SIP instead of apprtc then how should I do it ?
I am running a local nodejs server which accepts the client connection over websocket. Can you please direct me in this case.
LikeLike
Apprtc is specifically written to have google’s server as broker. In your case, you should use websocket to exchange SDP and ICE candidates between 2 clients and your server should facilitate exchange. Research on the above said lines, you should be implement your own video conferencing system.
LikeLiked by 1 person
Great Work! I’m trying to incorporate appRTC into my project, do you have a cocoapod available?
LikeLike
You can take Webrtc Framework from the code. Since this is a demonstration of webrtc using Google’s apprtc server, I did not bake into cocoapods.
LikeLike
Great Work! Thanks! I have two question:
1. Can I sounding while calling
2. Can I get calling time
LikeLike
I didnt understand your question. Can you rephrase it?
LikeLike
I need to implement functionality like in phone-calling, like while you calling play some sound and when opponent accept stop it , and then i need to start timer while your conversation is continue
LikeLike
In that case you need to have a separate telephony mechanism to act like regular call. Possibly like a separate mechanism to trigger call and accept call. Once you accept a call, you should start webrtc signaling. Hope that helps.
LikeLike
Can you advice me some ways to do this?
LikeLike
Well there are few options that i know – traditional SIP systems, or a simplistic webrtc signaling server https://github.com/Androidhacks7/WebRTC-Signaling-Server from one of my friends.
LikeLike
Hello.. Amazing work there converting the webrtc framework..
I am also trying to work it out for tvos… Any idea how should I proceed…
I’ll be very glad to get any kind of guidance.. Thanking you in advance.
LikeLike
Well for TVOS, I guess you need to do the following
1. Make webrtc bitcode enabled – Follow instructions here – https://blog.andyet.com/2015/10/20/building-webrtc-with-bitcode/
2. Just dont enable media during client side (in this case tvOS ) intialization. Make a webrtc connection without media from client side.
3. Rest all the same.
Interestingly you cant access Mic in Apple TV and you cant connect camera to Apple TV. So why dont you prefer regular streaming instead of webrtc?
LikeLike
Awesome!
Thanks.
now I’m trying to put AppRTC code in my app.
I copy Lib directory and BridgeHeader in to my project.
and linked some frameworks include WebRTC.framework.
It occurs bulidtime error ‘Linker command failed with exit code 1’
I tried to solve this poblem. But still occurs 😦
Can you advice for me?
LikeLike
Hello! Great work on this!
I was wondering if you had any plans of integrating the project with Callkit – with/without the signalling part that needs VoIP push notifications etc. I’m fairly new to iOS coding and I wanted to see a best practice at work before I started fiddling with it. (There aren’t any public implementations yet, unfortunately).
LikeLike
Hi Eleftherios
I am bit occupied. So updating apprtc-swift to latest version and callkit integration will take time. Hopefully I i will update it by next year.
Regards
Dhilip
LikeLike