muaz-khan / WebRTC-Experiment

WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!
https://www.webrtc-experiment.com/
MIT License
11.71k stars 3.95k forks source link

WebRTC Text Chat not working across browser. #161

Open suman1409 opened 10 years ago

suman1409 commented 10 years ago

I am trying to send text message from Firefox version 22.0, Mozilla Firefox for Ubuntu -Canonical from my Ubuntu 12.04 to Chrome version 32.0.1700.107 on my Windows 7 machine over my corporate network. Error " You cannot send message to external domain". Can you please give some direction as to which code portion to change so that this can be fixed? I am bit new to WebRTC.

muaz-khan commented 10 years ago

I'm not sure which experiment you're trying?

  1. https://www.webrtc-experiment.com/chat-hangout/
  2. https://www.webrtc-experiment.com/text-chat/
  3. https://www.webrtc-experiment.com/DataChannel/

Above experiments are using RTP data channels for data connection which is now deprecated and which isn't implemented on Firefox forever! That's why connection between chrome and firefox, in this context, AFAIK, isn't possible!

BTW, you can try following instead:

  1. https://www.webrtc-experiment.com:12034/
  2. https://www.webrtc-experiment.com/RTCMultiConnection-v1.4-Demos/All-in-One.html

RTCMultiConnection is using both RTP and SCTP data channels:

  1. If chrome is 31 or earlier then it uses RTP
  2. If chrome is 32 or newer then it uses SCTP
  3. If it is Firefox then it uses SCTP

If SCTP is used; then connection between chrome and firefox is possible; also working in both directions regardless of who created the offer.

suman1409 commented 10 years ago

Thanks Mauz!

I am using the link - https://www.webrtc-experiment.com/RTCMultiConnection-v1.4-Demos/All-in-One.html

It is opening perfectly on Firefox and Chrome. I want to do a text chat one - one. So I selected data, one-to-one and click on New Session widget.

But how / where to specify about the peer connection details / url - port etc?

suman1409 commented 10 years ago

I got now! The text message is working. But I have tried the voice . Its not working.

Any issues with the voice?