如何在 Native ios8 app swift 2.0 中使用 WebRTC + Pubnub Api 作为视频聊天客户端

How to use WebRTC + Pubnub Api for video chat client in Native ios8 app swift 2.0

我正在开发一个 iOS 8 应用程序,它具有像 Skype 一样的 p2p 视频聊天功能。在研究 google 时,我得到了一些库,但没有得到任何 iOS 8 native.

我决定使用 PubNub 来使用 WebRTC API。如何使用这些库创建视频聊天原生 iOS 客户端?

我找到了一个原生视频聊天客户端的代码,

https://www.pubnub.com/docs/cocoa-swift/pubnub-swift-sdk

我不明白这个演示应用程序。

谁能帮帮我?

PubNub 作为 WebRTC 的信号协议

您需要的不仅仅是 PubNub 来进行视频聊天,因为 PubNub 扮演着信号协议的角色,而不是媒体流媒体服务。 Please see this PubNub KB article to get a full understanding of WebRTC and PubNub's role.