I have changed the Peerserver.js by using the generated server.key and server.crt.
getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
woogeen.sdk.js:8 ERROR: create LocalStream failed: Objectcode: 1101msg: "PERMISSION_DENIED"__proto__: Object
My question is how do i know if the Peerserver server used the server.key and server.cst? If yes, how to solve this problem?
Here is my modified code for the Peerserver.js, i put server.key and server.crt in the same directory as Peerserver.js
var servers = require("https").createServer(
key : fs.readFileSync('server.key'),
cert : fs.readFileSync('server.crt')
we deployed the https server,
error is following:
socket.io.js:2 Mixed Content: The page at 'https://192.168.20.129:444/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://192.168.20.171:8095/socket.io/?clientType=Web&clientVersion=3.1&token=aa&EIO=3&transport=polling&t=1461129092475-4'. This request has been blocked; the content must be served over HTTPS.
Shortly, replace “http://192.168.20.171:8095/” with “https://192.168.20.171:8096/”.
For detailed reason of this error, please refer to https://developers.google.com/web/fundamentals/security/prevent-mixed-content/what-is-mixed-content.