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

Works in Firefox but not Chrome? #16

Open
spiderkeys opened this issue May 2, 2018 · 3 comments
Open

Works in Firefox but not Chrome? #16

spiderkeys opened this issue May 2, 2018 · 3 comments

Comments

@spiderkeys
Copy link

First, thanks for putting this together. It has been very helpful in learning about how to tackle getting a pre-encoded stream over WebRTC.

I was able to fully build the libraries and example applications with your patches, and was successful in streaming the sample big buck clip to firefox, but can't seem to achieve the same result in Chrome. At first, I thought it might have to do with insecure origins issues, but from what I've read, I was under the understanding that Chrome is supposed to treat localhost as a secure origin?

Using Chrome 66 on Ubuntu 17.10
Steps:

  1. Run peerconnection_server
  2. Host the WebClient directory with the Python SimpleHTTPServer on localhost
  3. Open up the web client and click Sign In
  4. Run peerconnection_client --video_url big_buck_bunny_4s.264
  5. Both peers can see each other at this point
  6. Click the call button in the client
  7. Web client receives several ICE candidates, but doesn't seem to establish a connection to any of them.

Any ideas?

@kiran-raj94
Copy link

kiran-raj94 commented Jan 23, 2019

I faced the same issue. The problem seems to be in mediaConstraints in Web_Client/main.js. I changed the mediaConstraints to {mandatory:{'OfferToReceiveAudio': false, 'OfferToReceiveVideo': true}} and it worked in chrome.

@asrivastava09
Copy link

hi getting the same error, what is the mozilla version this workd?

@kiran-raj94
Copy link

My firefox version is 64.0 and it works if you enable h264decoder. Go to about:config and search "media.navigator.mediadatadecoder_h264_enabled". Set the value as true and check if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants