Skip to content

Commit

Permalink
Client API documentation for explaining MediaDevices.getDisplayMedia() (
Browse files Browse the repository at this point in the history
#1471)

* Enabling GetDisplayMedia for screensharing

* Client API documentation for explaining MediaDevices.getDisplayMedia()
  • Loading branch information
Álvaro Alonso authored Oct 3, 2019
1 parent 8349b09 commit 6136772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/client_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ If you want to use a stream to share your screen you should initialize it this w
var stream = Erizo.Stream({screen: true, data: true, attributes: {name:'myStream'}});
```

Note that, if you use a Stream this way, the client that will share its sreen must access to your web app using a secure connection (with https protocol) and use a screensharing plugin as explained <a href="http://lynckia.com/licode/plugin.html" target="_blank">here</a>.
Note that, if you use a Stream this way, the client that will share its sreen must access to your web app using a secure connection (with https protocol).

Additionally, in Chrome, you can use your own extension outside of Licode and directly pass the `chromeMediaSourceId` as a parameter:
The Stream API is currently using the MediaDevices.getDisplayMedia() method. The MediaDevices.getUserMedia() method can be still used for sharing the screen by specifying an extensionId or desktopStreamId. Instructions for developing Chrome extensions can be found <a href="http://lynckia.com/licode/plugin.html" target="_blank">here</a>. Additionally, in Chrome, you can use your own extension outside of Licode and directly pass the `chromeMediaSourceId` as a parameter:

```
var stream = Erizo.Stream({screen: true, data: true, attributes: {name:'myStream'}, desktopStreamId:'ID_PROVIDED_BY_YOUR_EXTENSION'});
Expand Down

0 comments on commit 6136772

Please sign in to comment.