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

[Screen Selection] OSX and Win implementation #3163

Merged
merged 1 commit into from
Mar 4, 2015

Conversation

jtg-gg
Copy link
Member

@jtg-gg jtg-gg commented Mar 3, 2015

Chrome Screen Selection does not work ubuntu linux
hence I am not yet supporting it on linux

how to use it:
var gui = require('nw.gui');
gui.Screen.Init();
gui.Screen.chooseDesktopMedia(["window","screen"],
function(streamId) {
var vid_cons = {mandatory: {chromeMediaSource: 'desktop', chromeMediaSourceId: streamId, maxWidth: 1920, maxHeight: 1080}, optional:[]};
navigator.webkitGetUserMedia({audio: false, video: vid_cons}, success_func, fallback_func);
});

Squashed commits:

[4606c6c] [Screen Selection] [OSX] initial implementation
rogerwang added a commit that referenced this pull request Mar 4, 2015
[Screen Selection] OSX and Win implementation
@rogerwang rogerwang merged commit 5b8e688 into nwjs:nw12 Mar 4, 2015
@rogerwang
Copy link
Member

@jtg-gg
Copy link
Member Author

jtg-gg commented Mar 4, 2015

@rogerwang is it only fail for mac_32 ?

@rogerwang
Copy link
Member

@jtg-gg
Copy link
Member Author

jtg-gg commented Mar 4, 2015

@rogerwang can you force a clean build on OSX ?

@rogerwang
Copy link
Member

thanks. it passed with a clean build.

@rogerwang
Copy link
Member

I add some doc here, please revise it: https://github.com/nwjs/nw.js/wiki/Screen#choosedesktopmedia

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

Successfully merging this pull request may close these issues.

3 participants