ios开发进阶iOS Developer

iOS音视频开源框架PJSIP入门-编译

2017-07-21  本文已影响225人  tjfeng88

背景

PJSIP is a free and open source multimedia communication library written in C language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. It combines signaling protocol (SIP) with rich multimedia framework and NAT traversal functionality into high level API that is portable and suitable for almost any type of systems ranging from desktops, embedded systems, to mobile handsets.

编译

下载推荐脚本:pjsip
git clone https://github.com/chebur/pjsip.git
将终端切换到脚本根目录:
cd /path/to/your/pjsip/dir
开启编译之旅:
./build.sh
进入刷屏模式:

image.png

编译完成:

image.png

将编译出来的库整理如下:

image.png
如果你想使用官网的demo: pjsua(pjsip-apps/src/pjsua/ios)
则需要依赖:openh264,openssl,opus否则编译报错
最后也是你们最关注的:
源码:PJSIP
库:2.6(支持armv7,armv7s,arm64,i386,x86_64)
官方demo:pjsua
上一篇下一篇

猜你喜欢

热点阅读