WebRTC for UWP, new RTCPeerConnection() doesn't complete execution

跟風遠走 提交于 2019-12-05 21:07:49

I found the problem at last, and the solution is semi-embarassing not to have found earlier :)

There is a static method Initialize(CoreDispatcher dispatcher) that initializes WebRTC with dispatcher and worker thread (link to definition in the UWP WebRTC wrapper). The following statement before creating a new RTCPeerConnection solved the problem.

 WebRTC.Initialize(this.Dispatcher);

According to the ChatterBox example it can take null instead of a dispatcher as a parameter (code example) in Windows 10.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!