muaz-khan / WebRTC-Experiment

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

Call from FireFox to Chrome (realtime-pluginfree-calls) #260

Open vvhuy298 opened 10 years ago

vvhuy298 commented 10 years ago

I use this example code: It run fine when i use Chrome call to Firefox but when do the opposite it got error Error occurs when Button "Receive His Call" click. On file PeerConnection.js Line 336 if (config.MediaStream) peer.addStream(config.MediaStream); config.MediaStream will result null on firefox "Object { MediaStream=LocalMediaStream, sdp={...}, onsdp=function(), more...}" Can you help me resolve it? Thank you very much

muaz-khan commented 10 years ago

Simply replace this line with:

var SIGNALING_SERVER = 'https://webrtc-signaling.nodejitsu.com:443/';

config.MediaStream is actually peer.MediaStream which is called here. So it shouldn't be the issue.

P.S. Whilst testing between chrome and Firefox, make sure that you're using two unique webcam sources or otherwise install something like ManyCam.

vvhuy298 commented 10 years ago

Thank you for your reply.

I replaced it "var SIGNALING_SERVER = 'https://webrtc-signaling.nodejitsu.com:443/';" but still got the issue. I'm testing between Chrome on MacOS and FireFox on Win7. it got issue too when testing between Firefox on MacOS and FireFox on Win7. But it work fine when test between Chrome on Macos and Chrome on Win7. Please help me. Thank you more! screen shot 2014-08-12 at 9 02 57 am

muaz-khan commented 10 years ago

Just uploaded the demo here:

and updated the code:

vvhuy298 commented 10 years ago

Ok i got it, Thank you very much !