CocoaPods trunk is moving to be read-only. Read more on the blog, there are 2 months to go.

JAHPeerConnection 1.0.0

JAHPeerConnection 1.0.0

TestsTested ✗
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2015

Maintained by Jon Hjelle.



What is this?

A block-based API (and a nicer init method) for RTCPeerConnection from webrtc.org. I've submitted the same API to the WebRTC project, but it hasn't been merged yet and I want this API for other projects without making a custom build.

Usage

I've added a nicer init method that provides some default constraints.

JAHPeerConnection* peerConnection = [[TLKPeerConnection alloc] initWithICEServers:servers constraints:constraints peerConnectionFactory:peerConnectionFactory];
peerConnection.delegate = self;

The delegate-based API has been replaced with a blocks-based API.

[self.peerConnection createOfferWithConstraints:constraints completion:^(RTCSessionDescription *sessionDescription, NSError *error) {
    // Do other stuff now that we have the offer
}];

License

MIT

Created By

This was created by @hjon.