Run mediasoupt-demo without certs [solved]

is there a way to run mediasoup without the certificates?

Thank you very much

You need the certificates to have an https connection.
Without https the browser can’t request any user media like webcam or microphone.

If you’re running in localhost you can run without https though. But that’s it.

You can create a random certificate for the server which is good enough to make it work. You’ll get a message in the browser that the certificates aren’t valid. But you can just proceed through that.

The demo is built for using a TLS certificate, you can use a self signed one.

Thanks, I solved it