Latest 1.0.0
License MIT
Platforms ios 7.0, osx 10.8, requires ARC
Dependencies libjingle_peerconnection

What is this?

A block-based API (and a nicer init method) for RTCPeerConnection from 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.


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

JAHPeerConnection* peerConnection = [[JAHPeerConnection 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



Created By

This was created by @hjon.

Latest podspec

    "name": "JAHPeerConnection",
    "version": "1.0.0",
    "summary": "A block-based API for RTCPeerConnection from",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": "Jon Hjelle",
    "social_media_url": "",
    "source": {
        "git": "",
        "tag": "1.0.0"
    "source_files": [
    "platforms": {
        "ios": "7.0",
        "osx": "10.8"
    "requires_arc": true,
    "dependencies": {
        "libjingle_peerconnection": []

Pin It on Pinterest

Share This