Skip to content

Commit

Permalink
mention getUserMedia options in desktop-capturer docs
Browse files Browse the repository at this point in the history
  • Loading branch information
max-mapper committed Dec 15, 2015
1 parent 063231c commit c98db82
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/api/desktop-capturer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

The `desktopCapturer` module has the following methods:
Expand Down

0 comments on commit c98db82

Please sign in to comment.