Frage

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.

War es hilfreich?

Lösung

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.

Andere Tipps

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top