WebRTC Firefox to Chrome video call not working

给你一囗甜甜゛ 提交于 2019-12-20 04:52:07

问题


My WebRTC app works fine when I connect two of the same browsers, but when I try a combination neither respond to each others signaling messages. Something probably worth mentioning is that I have not implemented TURN, however I don't see why that should make a difference so I'm not going to change that unless I'm fairly certain it will.

I don't have much of a clue where the error lies, so I will just add code on request for the sake of readability.


回答1:


Make sure you enable DTLS-SRTP (Firefox only supports DTLS-SRTP) by passing the following to the PeerConnection constructor:

{ 'optional': [{'DtlsSrtpKeyAgreement': 'true'}]}

See this page for more details.




回答2:


You have not really described what goes wrong with the signaling. No error messages and so on. But based on the fact that you only see the fault when using two different web browsers I would recommend using Adapter.js that have been somewhat promoted from webRTC.

Link to webRTC demo that shows on the interoperability using Adapter.js(page also contains a link to Adapter.js):http://www.webrtc.org/demo

Direct link to adapter.js




回答3:


Try to turn off your firewalls to check if it fixes the problem. In my case (Windown 7), default windows firewall didn't allow UDP for Private Inbound Connection Setting and Firefox + Chrome p2p connection just didn't work.

Hope it helps.



来源:https://stackoverflow.com/questions/18435233/webrtc-firefox-to-chrome-video-call-not-working

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