iOS - XMPP with WebRTC for realtime video call or chat - ios

I have searched the whole web but did not get any document for passing the XMPP IQ to WebRTC. Also I see is the XMPP Jingle class, but cannot find any document for integrate this.
Can someone help me with setting up a two-way video call using XMPP and WebRTC? By providing a working sample of Objective-C code?
I have tried:
Checking https://github.com/YK-Unit/AppRTCDemo and many other Github projects.

Are you want to support different platforms to get live video streaming?
So, i have a very good experience with https://www.nanocosmos.de/ library.
It's supports iOS, Android and Web. Has demo applications and trial period.
About documentation:
XMPP Framework: https://github.com/robbiehanson/XMPPFramework/wiki/IntroToFramework
It's very good documented.
WebRTC Native Code:
https://webrtc.org/native-code/ios/
It's contains all information about WebRTC.

Related

Video call and chat using WebRTC and Pubnub in native iOS Swift

I'm working on a doctor-patient appointment app on native iOS Swift project. Here I want to implement a live video call with chat using WebRTC and PubNub signaling server. I'm totally new to it. I don't know how to implement this. I have seen some of the Objective-C codes but still I didn't understand. Please help if any of you implement the same in swift.
Highly recommend you reach out to a service such as Vonage (https://www.vonage.com) who can provide HIPAA compliant WebRTC video service for you.
Once you have a set of keys on Vonage, you can use PubNub to move the video session details around the channel in question.
Traditionally I use a JSON object model that looks like this:
channel: "UUID of medical session"
messageID: "MessageID on your platform"
messageType: "videoInvite"
sender: "Hilaj"
sessionDetails: "session JWT and/or session token"
timestamp: "1597347054"
This means you can send text based messages as well as video invites in the same channel and write the event to logs.
I have implemented this in Swift (and previously in Objective C) but it is completely proprietary.
You are going to have to download the Google WebRTC framework.
Taking a quick look at PubNub, it looks like it just does signalling. You are still going to need an actual WebRTC server (eg, Janus). There are others and I'm not really sure which ones support PubNub.

GoogleWebRTC Audio Video Calling iOS

I want to develop one audio-video calling application. So, I have decided to use Google WebRTC, so Google WebRTC is good for calling functionality?. Is Google WebRTC support to Conference Calling?. If it is not, then what are the different limitation of Google WebRTC? Please suggest me another calling SDK's for iOS Swift.

Video Streaming and Broadcasting using WebRTC

I am very new to Real Time Protocols and I had some questions about how WebRTC works and how I can implement it. I am trying to create a one to many livestream like facebook or periscope, where one user broadcasts and other users join and stream the video. I am using Swift from my client end.
My questions are:
How do I broadcast a video using WebRTC
Is there an SDK for WebRTC in Swift/iOS
I know the questions are very vague but a guidance to the right direction would be great because I am not sure where to start
You will need to use backend servers for that.
If you plan on broadcasting to multiple users directly from your mobile app then stop...
You need to connect your mobile app to a backend media server which then can be used to broadcast the video to a larger audience.
There are several commercial and open source alternatives that enable you to do that. I'd check Red5Pro, Wowza, SwitchRTC, Jitsi, Janus and Kurento for this task.
For the client side, look at react-native-webrtc
You can find more tools for WebRTC developers here.
Regarding your question (2), there's also a SDK for iOS here and a neat get-started-page here (although 2.5ys old, but I haven't found anything better so far yet)

PubNub iOS WebRTC Integration

I am trying to use PubNub as the signaling server for a webRTC iOS app. I am using Xirsys for the ICE servers. I have been able to get my app working with googles AppRTC framework, but I can't seem to find any good information on integrating with PubNub as the signaling server.What is the best way to integrate PubNub with webRTC on an iOS app? This app is writen in Swift/Obj-C Thanks!
PubNub as Signal Protocol
You are just going to integrate the PubNub JavaScript SDK into your app to signal (publish a message on a channel) from one client to the other the details of how to connect. This KB article may be helpful to you: Does PubNub provide WebRTC and video chat?
Use Pubnub sdk - https://www.pubnub.com/docs/swift/pubnub-swift-sdk
It is available for both swift and Objective C.
You need to create your own steps for SDP and ICE Candidates signalling via Pubnub. Refer - https://www.tutorialspoint.com/webrtc/webrtc_signaling.htm
Or you can refer the sample webrtc iOS App just to see what message status they have maintained for signalling purpose. Refer - https://github.com/Mahabali/Apprtc-swift
You can make robust signalling process based on your app or project requirement.

How to implement webRTC in iOS app

I have successfully implemented xmpp Connection and text chatting by using xmpp in my application. Now want to implement video calling by using webRTC. I don't know the exact procedure for it. I have searched about it but, I'm unable to implement the video chat.
If anyone have any idea about the procedure, please help me.
look at the webrtc.org code. The library compiles with bindings for iOS, and the app (appRTCDEMO) provides a full example for iOS. It's a great start.

Resources