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.

有帮助吗?

解决方案

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.

其他提示

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

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top