File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
- ## Note
1
+ ## Notes
2
+
3
+ ### You might not need this anymore!
4
+
5
+ Recent Chrome versions (70 and up) [ introduced
6
+ ` getDisplayMedia ` ] ( https://groups.google.com/forum/?__s=seqnqtrfky2js3hsisxx#!msg/discuss-webrtc/Uf0SrR4uxzk/uO8sLrWuEAAJ )
7
+ which essentially nullify this project and the need for an extension. You can
8
+ simply acquire a screen stream with something like this:
9
+
10
+ ``` js
11
+ navigator .mediaDevices .getDisplayMedia ({ audio: false , video: true })
12
+ .then (stream => video .srcObject = stream)
13
+ .catch (handleError);
14
+ ```
15
+
16
+ A working demo can be found
17
+ [ here] ( https://cdn.rawgit.com/uysalere/js-demos/master/getdisplaymedia.html ) .
18
+
2
19
3
20
* This project has been merged into https://github.com/GoogleChrome/webrtc in
4
21
case something doesn't work have [ a look over
5
22
there.] ( https://github.com/webrtc/samples/tree/master/src/content/extensions/desktopcapture ) *
6
23
24
+ ## Introduction
25
+
7
26
* This demo app shows you how to use a Chrome extension to access the
8
27
` desktopCapture ` API in your web-application.*
9
28
You can’t perform that action at this time.
0 commit comments