Skip to content

Commit 01da094

Browse files
Clarify that browsers can use internally-available information about the devices over ideal constraints (#41515)
* Clarify that browsers can use internally-available information about the devices over ideal constraints Link to specs: https://w3c.github.io/mediacapture-main/ * Fix typo * Explain user preference in more detail * Update files/en-us/web/api/mediadevices/getusermedia/index.md * Update files/en-us/web/api/mediadevices/getusermedia/index.md --------- Co-authored-by: Joshua Chen <[email protected]>
1 parent 23398d0 commit 01da094

File tree

1 file changed

+2
-0
lines changed
  • files/en-us/web/api/mediadevices/getusermedia

1 file changed

+2
-0
lines changed

files/en-us/web/api/mediadevices/getusermedia/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ getUserMedia({
300300
```
301301

302302
The above will return the camera you requested, or a different camera if that specific camera is no longer available.
303+
Browsers' internally-available information, such as user preference, may also override your request.
304+
For example, when the user was asked for camera permissions, the camera they selected may take priority over the one you requested.
303305
Again, to _require_ the specific camera, you would use:
304306

305307
```js

0 commit comments

Comments
 (0)