Skip to content

Couldnot find stream object. #10

@santhoshreddyk

Description

@santhoshreddyk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions