Latest 1.0.0
Homepage https://github.com/hjon/JAHPeerConnection
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 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 = [[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
}];

License

MIT

Created By

This was created by @hjon.

Latest podspec

{
    "name": "JAHPeerConnection",
    "version": "1.0.0",
    "summary": "A block-based API for RTCPeerConnection from webrtc.org.",
    "homepage": "https://github.com/hjon/JAHPeerConnection",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": "Jon Hjelle",
    "social_media_url": "http://twitter.com/hjon",
    "source": {
        "git": "https://github.com/hjon/JAHPeerConnection.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "JAHPeerConnection.h",
        "JAHPeerConnection.m"
    ],
    "platforms": {
        "ios": "7.0",
        "osx": "10.8"
    },
    "requires_arc": true,
    "dependencies": {
        "libjingle_peerconnection": []
    }
}

Pin It on Pinterest

Share This