Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldnot find stream object. #10

Open
santhoshreddyk opened this issue Mar 1, 2015 · 2 comments
Open

Couldnot find stream object. #10

santhoshreddyk opened this issue Mar 1, 2015 · 2 comments

Comments

@santhoshreddyk
Copy link

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?

@DamonOehlman
Copy link
Member

Yes - there have been quite a few changes since you last worked with the code it seems. I've added some more up-to-date instructions on using the screenshare module and how to prep things for deployment in the demo-screenshare README

@DamonOehlman
Copy link
Member

@santhoshreddyk Just checking in to see how you went upgrading to the latest version. Also the new rtc-screen package might be of interest to you also. Same stuff under the hood, just a higher level API which actually does to the capture for you instead of just returning constraints...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants