Merge pull request #3825 from atom/maxogden-patch-1

mention getUserMedia options in desktop-capturer docs
This commit is contained in:
Cheng Zhao 2015-12-16 11:30:05 +08:00
commit c39a6c49de

View file

@ -38,6 +38,15 @@ function getUserMediaError(e) {
} }
``` ```
When creating a constraints object for the `navigator.webkitGetUserMedia` call,
if you are using a source from `desktopCapturer` your `chromeMediaSource` must
be set to `"desktop"` and your `audio` must be set to `false`.
If you wish to
capture the audio and video from the entire desktop you can set
`chromeMediaSource` to `"screen"` and `audio` to `true`. When using this method
you cannot specify a `chromeMediaSourceId`.
## Methods ## Methods
The `desktopCapturer` module has the following methods: The `desktopCapturer` module has the following methods: