Skip to content

Commit 6ebbece

Browse files
Replace getUserMedia() with navigator.mediaDevices.getUserMedia()
1 parent e3ab5cd commit 6ebbece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Some of the samples use new browser features. They may only work in Chrome Canar
88

99
All of the samples use [adapter.js](https://github.com/webrtc/adapter), a shim to insulate apps from spec changes and prefix differences. In fact, the standards and protocols used for WebRTC implementations are highly stable, and there are only a few prefixed names. For full interop information, see [webrtc.org/web-apis/interop](http://www.webrtc.org/web-apis/interop).
1010

11-
In Chrome and Opera, all samples that use `getUserMedia()` must be run from a server. Calling `getUserMedia()` from a file:// URL will work in Firefox, but fail silently in Chrome and Opera.
11+
In Chrome and Opera, all samples that use `navigator.mediaDevices.getUserMedia()` must be run from a server. Calling `navigator.mediaDevices.getUserMedia()` from a file:// URL will work in Firefox, but fail silently in Chrome and Opera.
1212

1313
[webrtc.org/testing](http://www.webrtc.org/testing) lists command line flags useful for development and testing with Chrome.
1414

0 commit comments

Comments
 (0)