Hardware (class)
Class that may be used to manage audio and video devices.
Properties
cameras
cameras: ReadonlyWatchable<InputDevice[]>
Watchable property that allows getting the array of the currently available cameras ond observing its changes.
lastAddedDevice
lastAddedDevice: ReadonlyWatchable<null | InputDevice | OutputDevice>
Watchable property that allows getting the last added audio or video device and observing its changes.
lastRemovedDevice
lastRemovedDevice: ReadonlyWatchable<null | InputDevice | OutputDevice>
Watchable property that allows getting the last removed audio or video device and observing its changes.
microphones
microphones: ReadonlyWatchable<InputDevice[]>
Watchable property that allows getting the array of the currently available microphones ond observing its changes.
permission
permission: DevicePermission
Allows requesting the microphone and camera permissions and monitor permissions state changes.
speakers
speakers: ReadonlyWatchable<OutputDevice[]>
Watchable property that allows getting the array of the currently available speakers ond observing its changes.