SIP和Webrtc集成iOS
发布时间:2020-12-14 17:23:48 所属栏目:百科 来源:网络整理
导读:我正在尝试将Webrtc与PJSIP for iOS集成.逻辑是SIP系统单独工作,Webrtc系统单独工作.我不会在任何情况下混合两者.我在链接器中第一个问题是尝试集成PJSIP的SRTP和Webrtc的SRTP. PJSIP的SRTP版本较旧,Webrtc的SRTP版本较新.我在链接器中使用force_load“LibPa
我正在尝试将Webrtc与PJSIP for iOS集成.逻辑是SIP系统单独工作,Webrtc系统单独工作.我不会在任何情况下混合两者.我在链接器中第一个问题是尝试集成PJSIP的SRTP和Webrtc的SRTP. PJSIP的SRTP版本较旧,Webrtc的SRTP版本较新.我在链接器中使用force_load“LibPath”强制加载.它解决了链接器错误.我能够建立Webrtc连接,接收远程视频轨道,但我无法渲染远程流.我得到以下日志.我的主要嫌疑人是在需要Webrtc的SRTP时加载PJSIP的SRTP.是否可以覆盖Webrtc的SRTP库?或者您还有其他建议吗?
没有SIP,我能够在两个设备之间进行正确的连接和流式传输,并且它可以在不同的项目中工作,甚至APPRTC的演示也可以工作. 2015-06-12 18:57:41.835 [1028:134693] -[WebrtcManager peerConnection:iceGatheringChanged:] [Line 529] ICE gathering state changed: 2 testing rand_source...passed cipher: aes cipher block chaining (cbc) mode instance count: 0 self-test: 2015-06-12 18:57:42.063 [1028:134693] -[WebrtcManager peerConnection:iceConnectionChanged:] [Line 524] ICE state changed: 2 passed cipher: aes integer counter mode instance count: 0 self-test: passed cipher: null cipher instance count: 0 self-test: passed auth func: hmac sha-1 authentication function instance count: 0 self-test: passed auth func: null authentication function instance count: 0 self-test: passed debug modules loaded: srtp (off) hmac sha-1 (off) aes cbc (off) aes icm (off) alloc (off) stat test (off) cipher (off) auth func (off) crypto kernel (off) testing rand_source...passed cipher: aes cipher block chaining (cbc) mode instance count: 0 self-test: passed cipher: aes integer counter mode instance count: 0 self-test: passed cipher: null cipher instance count: 0 self-test: passed auth func: hmac sha-1 authentication function instance count: 0 self-test: passed auth func: null authentication function instance count: 0 self-test: passed debug modules loaded: srtp (off) hmac sha-1 (off) aes cbc (off) aes icm (off) alloc (off) stat test (off) cipher (off) auth func (off) crypto kernel (off) 解决方法
我不得不在PJSIP srtp libs中添加名称空间以避免符号冲突.现在两者都存在
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |