message: add findDeviceById
diff: @@ -150,6 +150,20 @@ export class BrowserCodeReader {
  return devices.map(d => new VideoInputDevice(d.deviceId, d.label));
  }
  + /**
  + * Let's you find a device using it's Id.
  + */
  + public async findDeviceById(deviceId: string): Promise<MediaDeviceInfo> {
  +
  + const devices = await this.listVideoInputDevices();
  +
  + if (!devices) {
  + return null;
  + }
  +
  + return devices.find(x => x.deviceId === deviceId);
  + }
  +
  /**
  * Decodes the barcode from the device specified by deviceId while showing the video in the specified video element.
  *
  