WebRTC 升级接口方法调整(Windows)

WebRTC 调整 
1、VideoFrameBuffer 改成 I420BufferInterface,使用 ToI420 转换 
2、MediaFile 没有了,相关代码被注释,都是测试功能 
3、AudioDeviceModuleImpl::Create 接口调整 
4、LOG_F 没有了, RTC_LOG_F 代替 
5、CreatePeerConnection 接口变化(已经调整) 
6、CreateOffer 接口变化(已经调整) 
7、CreateAnswer 接口变化(已经调整) 
8、CreatePeerConnectionFactory 接口变化(已经调整) 
9、CreateAudioSource 接口调整 
10、自行添加的 VideoScreenCaptureModule(已经解决)

其他调整: 
1、JsonCpp,Value removeIndex 没有了(未解决)

运行时问题: 

1、vp8 encoder crash(Debug版本没有问题) 
类似报告: 
https://groups.google.com/forum/#!topic/discuss-webrtc/nriHmLyD4EE 
2、不能接受远程媒体流(接口调整不到位) 
3、桌面截屏不能工作 
  a、修改 WebrtcVideoCapturer,SetSupportedFormats 
  b、PlatformThread行为变化,需要调整VideoScreenCaptureModule 
  c、VideoScreenCaptureModule 的 CaptureProcess 没有循环,只截取的一帧

Debug 模式编译问题: 
1、protoc 运行错误,initgeneratedpool 两次执行(暂时用 release 版本的 protoc 绕过),参考: 
https://github.com/protocolbuffers/protobuf/pull/4878/commits/a9abc7831e45257d334cfa682746b6cadf9e95d9 
2、_ITERATOR_DEBUG_LEVEL 不匹配,与 boost 库,参考: 
https://blog.csdn.net/p13503959390/article/details/73799917

猜你喜欢

转载自blog.csdn.net/luansxx/article/details/89599831