美文网首页ios开发进阶iOS Developer
iOS音视频开源框架PJSIP入门-编译

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

作者: tjfeng88 | 来源:发表于2017-07-21 09:56 被阅读225次

    背景

    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

    相关文章

      网友评论

        本文标题:iOS音视频开源框架PJSIP入门-编译

        本文链接:https://www.haomeiwen.com/subject/tayskxtx.html