{"json_modified": "2016-10-23T17:42:35.094470", "uuid": "dcc65955-a567-48a6-8768-f1b61b599c97", "title": "Navigator.getUserMedia()", "url": "/en-US/docs/Web/API/Navigator/getUserMedia", "tags": ["API", "WebRTC", "Reference", "Media Streams API", "Navigator", "getusermedia", "Deprecated", "Media Capture and Streams API", "Media", "Method"], "translations": [{"uuid": "2b46cb6c-9fc4-40de-8818-bfc2ed421e14", "title": "Navigator.getUserMedia", "url": "/es/docs/Web/API/Navigator/getUserMedia", "tags": [], "summary": "Pide al usuario permiso para usar un dispositivo multimedia como una c\u00e1mara o micr\u00f3fono. Si el usuario concede este permiso, el successCallback es invocado en la aplicaci\u00f3n llamada con un objeto LocalMediaStream como argumento.", "localization_tags": [], "locale": "es", "last_edit": "2016-06-21T08:15:16", "review_tags": []}, {"uuid": "248b98a5-7dbd-4c8a-8d7f-93c9ea12a02c", "title": "NavigatorUserMedia.getUserMedia()", "url": "/fr/docs/NavigatorUserMedia.getUserMedia", "tags": [], "summary": "Demande \u00e0 l'utlisateur la permission d'utiliser un dispositif media tels qu'un microphone ou un camera. Si l'utilisateur donne cette permission, la methode\u00a0successCallback
\u00a0 est invoqu\u00e9e avec un objet\u00a0LocalMediaStream
comme argument.", "localization_tags": ["inprogress"], "locale": "fr", "last_edit": "2015-03-18T00:21:22", "review_tags": []}, {"uuid": "be3b78e6-fdb1-48b5-8986-d9ea00adbbae", "title": "Navigator.getUserMedia", "url": "/ja/docs/Web/API/Navigator/getUserMedia", "tags": ["Method", "Reference", "API", "Deprecated", "WebRTC"], "summary": "Navigator.getUserMedia()
\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u30ab\u30e1\u30e9\u3084\u5171\u6709\u753b\u9762\u3001\u30de\u30a4\u30af\u306a\u3069\u30010 \u307e\u305f\u306f 1 \u7cfb\u7d71\u306e\u52d5\u753b\u5165\u529b\u30c7\u30d0\u30a4\u30b9\u304a\u3088\u3073 0 \u307e\u305f\u306f 1 \u7cfb\u7d71\u306e\u97f3\u58f0\u5165\u529b\u30c7\u30d0\u30a4\u30b9\u306e\u4f7f\u7528\u8a31\u53ef\u3092\u30e6\u30fc\u30b6\u30fc\u306b\u6c42\u3081\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u304c\u8a31\u53ef\u3092\u4e0e\u3048\u308b\u3068\u3001\u8a31\u53ef\u3055\u308c\u305f MediaStream
\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5f15\u6570\u306b\u4e0e\u3048\u308b successCallback
\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u304c\u62d2\u5426\u3059\u308b\u304b\u30e1\u30c7\u30a3\u30a2\u304c\u4f7f\u7528\u3067\u304d\u306a\u3044\u5834\u5408\u3001PermissionDeniedError
\u307e\u305f\u306f NotFoundError
\u30a8\u30e9\u30fc\u3092\u4f34\u3046 errorCallback
\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u9078\u629e\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u5834\u5408\u306a\u3069\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u547c\u3073\u51fa\u3057\u304c\u5b8c\u4e86\u3057\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-10-02T21:23:17", "review_tags": []}, {"uuid": "cbd8d85b-4ef4-4ff3-97c5-a9b06c2bf290", "title": "navigator.getUserMedia", "url": "/pt-BR/docs/Web/API/Navigator/getUserMedia", "tags": [], "summary": "Pede a permiss\u00e3o do usu\u00e1rio para utilizar um dispositivo multim\u00eddia, como uma c\u00e2mera ou um microfone. Se o usu\u00e1rio der permiss\u00e3o, a callbackSucesso \u00e9 chamada na aplica\u00e7\u00e3o que originou o pedido, recebendo um objeto LocalMediaStream como argumento.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2015-04-17T14:57:27", "review_tags": []}, {"uuid": "31451f0d-4f45-4bbc-a4d3-4a1b5028c5af", "title": "navigator.getUserMedia", "url": "/zh-CN/docs/Web/API/Navigator/getUserMedia", "tags": [], "summary": "Navigator.getUserMedia()\u65b9\u6cd5\u63d0\u9192\u7528\u6237\u9700\u8981\u4f7f\u7528\u97f3\u9891\uff080\u6216\u80051\uff09\u548c\uff080\u6216\u80051\uff09\u89c6\u9891\u8f93\u5165\u8bbe\u5907\uff0c\u6bd4\u5982\u76f8\u673a\uff0c\u5c4f\u5e55\u5171\u4eab\uff0c\u6216\u8005\u9ea6\u514b\u98ce\u3002\u5982\u679c\u7528\u6237\u7ed9\u4e88\u8bb8\u53ef\uff0csuccessCallback\u56de\u8c03\u5c31\u4f1a\u88ab\u8c03\u7528\uff0cMediaStream
\u5bf9\u8c61\u4f5c\u4e3a\u56de\u8c03\u51fd\u6570\u7684\u53c2\u6570\u3002\u5982\u679c\u7528\u6237\u62d2\u7edd\u8bb8\u53ef\u6216\u8005\u6ca1\u6709\u5a92\u4f53\u53ef\u7528\uff0cerrorCallback\u5c31\u4f1a\u88ab\u8c03\u7528\uff0c\u7c7b\u4f3c\u7684\uff0cPermissionDeniedError
\u00a0\u6216\u8005NotFoundError
\u5bf9\u8c61\u4f5c\u4e3a\u5b83\u7684\u53c2\u6570\u3002\u6ce8\u610f\uff0c\u6709\u53ef\u80fd\u4ee5\u4e0a\u4e24\u4e2a\u56de\u8c03\u51fd\u6570\u90fd\u4e0d\u88ab\u8c03\u7528\uff0c\u56e0\u4e3a\u4e0d\u8981\u6c42\u7528\u6237\u4e00\u5b9a\u4f5c\u51fa\u9009\u62e9\uff08\u5141\u8bb8\u6216\u8005\u62d2\u7edd\uff09\u3002
", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2016-09-05T19:30:53", "review_tags": []}], "modified": "2016-10-23T17:42:34", "label": "Navigator.getUserMedia()", "localization_tags": [], "locale": "en-US", "id": 56897, "last_edit": "2016-10-23T17:42:25", "summary": "The Navigator.getUserMedia()
method prompts the user for permission to use up to one video input device (such as a camera or shared screen) and up to one audio input device (such as a microphone). If permission is granted, a MediaStream
whose video and/or audio tracks come from those devices is delivered to the specified success callback. If permission is denied, no compatible input devices exist, or any other error condition occurs, the error callback is executed with a MediaStreamError
object describing what went wrong. If the user instead doesn't make a choice at all, neither callback is executed.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Return_value", "title": "Return value"}, {"id": "Errors", "title": "Errors"}, {"id": "Examples", "title": null}, {"id": "Width_and_height", "title": "Width and height"}, {"id": "Permissions", "title": "Permissions"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/Navigator/getUserMedia", "review_tags": []}