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
Event DeviceChangeEvent

Constructors

NameDescription
DeviceChangeEvent(string, DeviceChangeEventInit?)Creates an event.

DeviceChangeEvent(string, DeviceChangeEventInit?)

MediaDevices.cs

Creates an event.

public DeviceChangeEvent(string type, DeviceChangeEventInit? eventInitDict = null)

Parameters

type string
The type of the event.
eventInitDict DeviceChangeEventInit?
The initialization dictionary.

See also

Properties

NameDescription
DevicesGets the devices that the document can see.
UserInsertedDevicesGets the devices that were inserted by the user.

Gets the devices that the document can see.

public IReadOnlyList<MediaDeviceInfo> Devices { get; }

UserInsertedDevices

MediaDevices.cs

Gets the devices that were inserted by the user.

public IReadOnlyList<MediaDeviceInfo> UserInsertedDevices { get; }