DeviceChangeEvent Class
The event fired at MediaDevices when the devices change (devicechange, https://w3c.github.io/mediacapture-main/#devicechangeevent).
public sealed class DeviceChangeEvent : Event- Inheritance
EventDeviceChangeEvent
Constructors
| Name | Description |
|---|---|
| DeviceChangeEvent(string, DeviceChangeEventInit?) | Creates an event. |
DeviceChangeEvent(string, DeviceChangeEventInit?)
MediaDevices.csCreates an event.
public DeviceChangeEvent(string type, DeviceChangeEventInit? eventInitDict = null)Parameters
typestring- The type of the event.
eventInitDictDeviceChangeEventInit?- The initialization dictionary.
See also
Properties
| Name | Description |
|---|---|
| Devices | Gets the devices that the document can see. |
| UserInsertedDevices | Gets the devices that were inserted by the user. |
Devices
MediaDevices.csGets the devices that the document can see.
public IReadOnlyList<MediaDeviceInfo> Devices { get; }UserInsertedDevices
MediaDevices.csGets the devices that were inserted by the user.
public IReadOnlyList<MediaDeviceInfo> UserInsertedDevices { get; }