findDeviceById(deviceId) {
			return __awaiter(this, void 0, void 0, function* () {
				const devices = yield this.listVideoInputDevices();
				if (!devices) {
					return null;
				}
				return devices.find(x => x.deviceId === deviceId);
			});
		}
Let's you find a device using it's Id.