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

Click start webcam, publishing gets failed #5

Closed
madabhaviamit opened this issue Jul 10, 2019 · 10 comments
Closed

Click start webcam, publishing gets failed #5

madabhaviamit opened this issue Jul 10, 2019 · 10 comments

Comments

@madabhaviamit
Copy link

Hi @mkhahani,

Application is accessed from chrome browser and clicking on start webcam button with simulcast enabled shows publishing initially, few seconds later publishing gets failed.

Please help..

Thanks,
Amit M

@mkhahani
Copy link
Owner

Hi
Probably firewall issue. Check your console log for both the client and server.

@madabhaviamit
Copy link
Author

Hi
Probably firewall issue. Check your console log for both the client and server.

Hi @mkhahani,

I have setup the application on my google cloud VM instance, Firewall is disabled and all the ingress and egress ports are open. Service is up and running now.

Use the link to access the same, https://34.93.234.144:3000.
Also, there are no error logs on the server side, and i would want to understand how callback() function is working here.

Request you to access the link once and let me know if further details are required.

@mkhahani
Copy link
Owner

mkhahani commented Jul 10, 2019

You need to provide a domain. HTTPS connection can not be validated over IP. Check the error log in your browser console.

@madabhaviamit
Copy link
Author

madabhaviamit commented Jul 10, 2019 via email

@mkhahani
Copy link
Owner

Unfortunately the link is not opened for me (the IP seems to be blocked).
You should be able to see the error log via the Chrome console using F12 key.

@madabhaviamit
Copy link
Author

Unfortunately the link is not opened for me (the IP seems to be blocked).
You should be able to see the error log via the Chrome console using F12 key.

Hi @mkhahani ,

The service was shutdown yesterday, It is up and running now. I am not able to see any errors on the console. Can u please try to access it now.

@mkhahani
Copy link
Owner

Some thing must be wrong with your configuration. Have you set the announcedIp in the configuration file? Read more here.

Chrome webrtc-internals shows that it's trying to establish connection to IP 10.160.0.2 which is different than 34.93.234.144:

image

Also make sure you've opened the UDP port range in your server firewall.

@madabhaviamit
Copy link
Author

Hi @mkhahani,

My server's private IP is 10.160.0.2 and the public IP is 34.93.234.144.

What shall i set in the following configuration for listenIPs?

webRtcTransport: {
listenIps: [
{ip: '192.168.1.100', announcedIp: null}
],
maxIncomingBitrate: 1500000,
initialAvailableOutgoingBitrate: 1000000,
}

@madabhaviamit
Copy link
Author

Hi @mkhahani,

I have set IP as private IP and announced IP as Server's Public IP. Now It is working.

Thank you so much for your help.

We here, are trying to build a Live Streaming App with recording on server with the help of mediasoup. We are still looking at how things work in mediasoup.

@mkhahani
Copy link
Owner

mkhahani commented Jul 11, 2019

Very good.

We here, are trying to build a Live Streaming App with recording on server with the help of mediasoup. We are still looking at how things work in mediasoup.

Good luck then.

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

2 participants