Alex Pelletier
Alex Pelletier

Reputation: 5123

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!

Upvotes: 2

Views: 409

Answers (2)

abhimanyu jindal
abhimanyu jindal

Reputation: 668

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.

Upvotes: 1

Craig Conover
Craig Conover

Reputation: 4738

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?

Upvotes: 1

Related Questions