mediasoup-broadcast-example icon indicating copy to clipboard operation
mediasoup-broadcast-example copied to clipboard

Uncaught TypeError: Cannot read property 'getUserMedia' of undefined at HTMLButtonElement.captureStreams (publisher.js:129)

Open dijjit opened this issue 5 years ago • 1 comments

I have set up an AWS cluster with the provided Docker container - which appears to be running correctly. The firewall has been opened up as requested - and I see no errors from a server side perspective to indicate any problems.

However, when I go to visit publish.html and click capture - I get the following error;

image

I see no errors from a Subscriber side - and so the above seems to be limited to the issue regarding resolving what devices my browser has access to. I am running latest Chrome - and my same machine works fine on the MediaSoup demo site.

dijjit avatar May 07 '19 12:05 dijjit

You absolutely need to run the web server with HTTPS that is trusted by the client (or else the server needs to be on localhost) to capture media. I don't know if this is your only issue, but it is a start.

Note that I haven't actually used the Docker container by itself, as I run either locally or under Kubernetes (which in my cluster is fronted by an HTTPS reverse proxy). It would be great to add support to the example for enabling TLS via mounted cert/key. Alternatively, there's probably an AWS HTTPS reverse proxy that you can enable.

Please let me know if you have any success with this, so I can document what you needed to do to get it running under AWS.

Thanks for the report, Michael.

michaelfig avatar May 07 '19 15:05 michaelfig