File tree 1 file changed +13
-0
lines changed
src/main/scala/org/scalajs/dom/experimental/webrtc
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,19 @@ package object webrtc {
12
12
@ js.native
13
13
trait NavigatorMediaStream extends js.Object {
14
14
15
+ /**
16
+ * The Navigator.mediaDevices read-only property returns a MediaDevices object, which provides access to connected
17
+ * media input devices like cameras and microphones, as well as screen sharing.
18
+ *
19
+ * MDN
20
+ *
21
+ * @see [[https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices ]]
22
+ */
23
+ def mediaDevices : MediaDevices = js.native
24
+
25
+ @ deprecated(
26
+ " Navigator.getUserMedia() is deprecated, use Navigator.mediaDevices.getUserMedia() instead." ,
27
+ " 2014-05-28" )
15
28
def getUserMedia (constraints : MediaStreamConstraints ,
16
29
success : js.Function1 [MediaStream , Any ],
17
30
error : js.Function1 [DOMError , Any ]): Unit = js.native
You can’t perform that action at this time.
0 commit comments