-
Notifications
You must be signed in to change notification settings - Fork 9
Description
It seems the current version of screenshare module is entirely differnt from earlier version.
I used to attach captured stream to the quickConnect (qConnect.addStream(stream)) object using the below code.
shareScreen = function(){
screenshare.window(function(err, constraints) {
if (err) {
return console.error('Could not capture window: ', err);
}
console.log('attempting capture with constraints: ', constraints);
localMedia = media({ constraints: constraints })
.on('error', function(err) {
console.error('Could not capture: ', err);
});
localMedia.once('capture', function(stream) {
streamObj = stream;
qConnect.addStream(stream);
});
localMedia.render(local);
});
}
But the current api is not having the "once" function in it, and no similar method is there it seems. I want to send my captured stream to my friend through a quickconnect datachannel to have a realtime desktop sharing app. How do i do this with current api?
There is bundle.js file, how do i get that file when i am running the screen share application with quickconnect server.
i could not understand the meening of sharewindow.js:bundle.js exactly in (beefy sharewindow.js:bundle.js command), who is generating bundle.js and where is it residing.
How do i get bundle.js if iam running quickconnect server instead of beefy?