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

i am setting up this in Heroku server but not working #12

Open
priyanshurohilla opened this issue May 23, 2020 · 10 comments
Open

i am setting up this in Heroku server but not working #12

priyanshurohilla opened this issue May 23, 2020 · 10 comments

Comments

@priyanshurohilla
Copy link

priyanshurohilla commented May 23, 2020

I am trying to deploy this webapp in heroku server. It is working on localhost ,I can see the different webcam elements but in heroku webcam element is not being displayed. Can you help me out?
You can refer to this image:

WhatsApp Image 2020-05-24 at 1 42 42 AM

@footniko
Copy link
Owner

@priyanshurohilla make sure you've set the rtcAnnouncedIPv4 of the server config to a public IP of your server.

@priyanshurohilla
Copy link
Author

how do i find that rtcAnnouncedIPv4 of heroku server?

@footniko
Copy link
Owner

@priyanshurohilla it's not on Heroku server, it's in server/config.js file of this project.

@priyanshurohilla
Copy link
Author

yes i know that, what i am saying is how do i find the public IP of Heroku server to be written in that config.js file?

@footniko
Copy link
Owner

I do not use Heroku, pls google it.
One of the options:

ping yourherokudomain

@priyanshurohilla
Copy link
Author

ok cool!! i already did this, but still the same error is coming?🤔

@priyanshurohilla
Copy link
Author

Basically what am i able to see is that if i change the video src to a public available video.. Then it works perfectly. I can see that video, but normally can't see the live feed!! Is there any problem with the streaming of video?

@footniko
Copy link
Owner

footniko commented May 24, 2020

Try to set the IP to a local IP of the server. SSH to your Heroku's server and check it or check it in the control panel if it's possible.

@samaprk
Copy link

samaprk commented May 24, 2020

hi, I am also having the same problem, I changed the config.js rtcannounceipv4 to the Heroku domain name of the app i created but still the problem remains. What do you mean by setting the IP to local IP? Do you mean that I should pick one from the range of IP given by nslookup?
I am not a network person. Would be thankful if you help me

@footniko
Copy link
Owner

@samaprk

I changed the config.js rtcannounceipv4 to the Heroku domain name of the app i created but still the problem remains.

You have to set IP, not the domain name. Also, make sure the following range of UDP ports is open:

rtcMinPort: 40000,
rtcMaxPort: 49999,

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