Navigator: mediaDevices プロパティ
Baseline Widely available *
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2017.
* Some parts of this feature may have varying levels of support.
安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
Navigator.mediaDevices
読み取り専用プロパティは、カメラやマイク、画面共有のような接続されたメディア入力装置へのアクセスを提供する MediaDevices
オブジェクトを返します。
構文
js
navigator.mediaDevices
返値
MediaDevices
シングルトンオブジェクト。例えば navigator.mediaDevices.getUserMedia()
などを呼び出すなど、通常は、このオブジェクトのメンバーを直接使用するだけです。
仕様書
Specification |
---|
Media Capture and Streams # mediadevices |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mediaDevices | ||||||||||||||
Secure context required |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
- メディアキャプチャとストリーム API: すべてのメディアストリーム API についてのドキュメントのエントリーポイント。
- WebRTC API: 密接に関連する WebRTC API についてのドキュメント。