Closed emilio93 closed 8 years ago
Maybe we should add this?
connection.addStream({
screen: true,
oneway: true,
streamCallback: function(screenStream) {
if (!screenStream) {
alert('User did NOT select to share any stream. He clicked "Cancel" button instead.');
return;
}
screenStream.onended = function() {};
}
});
I'll add above feature in the NEXT commit.
Yeah that would be great! Thanks again!
Hi Muaz!
I have the following piece of code to share the screen using the screen capturing chrome extension and the
getScreenId.js
script.So everything goes great unless the user decides to cancel the popup to select the window to share, because the
screenshare_button
won't show again.I know that by editing the
getScreenId.js
file I can get the behaviour I want, but I don't want to touch that file(the code above only shows the important parts, there's actually more stuff done that would need to be added to thegetScreenId.js
file).Is there any work around to getting this done? Could there be another callback in the
addStream
method in case the user cancels the selection? I'd be keen to help, but by looking the dev files I get lost, so any recommendation on how to implement this would be appreciated!Thanks!