Webrtc application not working on localhost?

I am using a WebRTC demo application for screen sharing. The demo works fine, but when I try to run the same code on a local host or my own remote server, the code does not run. Any ideas on how I can fix this problem?

+6
source share
1 answer

Screenshots in Chrome only work via SSL connection (). You can use a self-signed certificate and just accept it in your browser (this is for Chrome <M36).

In addition, for Chrome> M36 you should now use the Chrome.desktopcapture API and the usual way to change media restrictions and enable screen sharing inside Chrome will not work in newer versions of chrome.

The API is simple and MUCH is more robust than the previous option in media restrictions.

+4
source

Source: https://habr.com/ru/post/974917/


All Articles