Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webrtc app not working on local host?

I am using a WebRTC demo application for screen sharing. The demo works perfectly fine but when I try to run the same code in localhost or my own remote server, the code doesn't run. Any ideas on how can I fix this issue?

like image 741
kartik Avatar asked Sep 06 '14 14:09

kartik


1 Answers

Screensharing in Chrome only works over an SSL connection(). You can use a self-signed cert and simply accept it in your browser(this is for Chrome < M36).

Also, for Chrome >M36 you must now use the Chrome.desktopcapture API and the usual way of modifying media constraints and enabling screen-sharing in Chrome internals will not work in newer versions of chrome.

The API is farely simple and MUCH more robust than the previous given option in the media constraints.

like image 200
Benjamin Trent Avatar answered Sep 29 '22 22:09

Benjamin Trent