Navigator.mediaDevices

Navigator.mediaDevices 읽기 전용 속성은 카메라, 마이크, 화면 공유와 같이 현재 연결된 미디어 입력 장치에 접근할 수 있는 MediaDevices 객체를 반환합니다.

구문

var mediaDevices = navigator.mediaDevices;

반환 값

MediaDevices 싱글톤 객체.

명세

명세 상태 코멘트
Media Capture and Streams
The definition of 'NavigatorUserMedia.mediaDevices' in that specification.
Candidate Recommendation Initial definition.

브라우저 호환성

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
mediaDevicesChrome Full support 51Edge Full support 12Firefox Full support 36IE Full support YesOpera No support NoSafari No support NoWebView Android Full support 51Chrome Android Full support 51Firefox Android Full support 36Opera Android No support NoSafari iOS No support NoSamsung Internet Android Full support 5.0
Secure context requiredChrome Full support 74Edge Full support 79Firefox Full support 69IE No support NoOpera No support NoSafari No support NoWebView Android Full support 74Chrome Android Full support 74Firefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android Full support 11.0

Legend

Full support  
Full support
No support  
No support

참조