Hi, im trying to do an experiment in screensharing:
var quickconnect = require('rtc-quickconnect')
var constraints = {
audio: false,
video: {
mandatory: {
chromeMediaSource: 'screen'
},
optional: []
}
}
quickconnect('//rtc.io/switchboard/', { ns: 'screenshare-test', data: true, constraints: constraints }).on('dc:open', function(channel, peerId) {
console.log(channel, peerId)
// var video = document.createElement('video')
// video.src = window.URL.createObjectURL(stream)
// video.autoplay = true
// document.body.appendChild(video)
})
to use the screen sharing API you must be on an https server. I'm using npm install crisp -g to do this locally in development.
When I run the above code (using browserify) I get the following error:
WebSocket connection to 'wss://rtc.io/switchboard/' failed: Error during WebSocket handshake: Unexpected response code: 404
Is wss:// supported? I can't use ws:// due to mixed protocol errors
Hi, im trying to do an experiment in screensharing:
to use the screen sharing API you must be on an
httpsserver. I'm usingnpm install crisp -gto do this locally in development.When I run the above code (using browserify) I get the following error:
Is
wss://supported? I can't usews://due to mixed protocol errors