SIP和Webrtc集成iOS

前端之家收集整理的这篇文章主要介绍了SIP和Webrtc集成iOS前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试将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中添加名称空间以避免符号冲突.现在两者都存在

猜你在找的Xcode相关文章