Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on Chrome #1

cjb opened this issue May 17, 2013 · 4 comments

Doesn't work on Chrome #1

cjb opened this issue May 17, 2013 · 4 comments


Copy link

cjb commented May 17, 2013

Chrome doesn't support "reliable" (TCP) datachannels yet, but that's not the only reason this app doesn't work in Chrome. It would be great to at least fix the other reasons.

Copy link

bscranton commented Jun 27, 2013

Chrome's security model doesn't normally allow any access to local devices/files from a "file://" URL. Adding "--allow-file-access-from-files" to the Chrome command line will let you get the offer and answer strings. Of course it still fails because Chrome doesn't support reliable data channels yet.

Copy link
Owner Author

cjb commented Jun 27, 2013

Thanks for the comment, @bscran. I don't get a PeerConnection even when running the source under "python -M SimpleHTTPServer 8080", even with unreliable data channels, so there's something about the ICE negotiation that needs to be fixed up before we get to these other problems.

Copy link

stken2050 commented Dec 18, 2013

I also created a similar serverless WebRTC test site for my learning curve and others.

My code works with Chrome with "reliable" DataChannel flag true.
I think the reason your code does not work with Chrome is
pc1.onconnection = handleOnconnection;

which never fired on Chrome

chrome RTCPeerConnection event not fire after connected

onconnection is not part of the interface in the latest standard, so that's probably why it's not implemented in Chrome:

The code in Firefox lists onconnection as a Mozilla extension:

Having said that, I stack where DataChannel send never works with Firefox. Chrome works fine on the other hand.
I observe your code also fails with DataChannel send with Firefox.

Please investigate my code(only 150lines), and do you have any idea on these?

Copy link
Owner Author

cjb commented May 18, 2014

Looks like Chrome works here now, and Chrome/Firefox interop works too.

@cjb cjb closed this as completed May 18, 2014
cjb pushed a commit that referenced this issue Dec 13, 2014
Update fork from master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

3 participants