devicechange
每当媒体设备(例如相机,麦克风或扬声器)连接到系统或从系统中移除时,devicechange
事件就会被发送到 MediaDevices
实例。这是一个没有附加属性的通用 Event
。
一般信息
属性
Property | Type | Description |
---|---|---|
target 只读 |
EventTarget |
事件对象 (位于 DOM 树最上面的元素). |
type 只读 |
DOMString |
事件类型。 |
bubbles 只读 |
Boolean |
是否冒泡 |
cancelable 只读 |
Boolean |
是否可被取消 |
相关事件
无.
样例
TBD
规范
Specification |
---|
Media Capture and Streams # event-mediadevices-devicechange |
Media Capture and Streams # dom-mediadevices-ondevicechange |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
devicechange event |
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.