VideoInputDevice.d.ts 763 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @deprecated Moving to @zxing/browser
  3. *
  4. * Video input device metadata containing the id and label of the device if available.
  5. */
  6. export declare class VideoInputDevice implements MediaDeviceInfo {
  7. deviceId: string;
  8. label: string;
  9. /** @inheritdoc */
  10. readonly kind = "videoinput";
  11. /** @inheritdoc */
  12. readonly groupId: string;
  13. /**
  14. * Creates an instance of VideoInputDevice.
  15. *
  16. * @param {string} deviceId the video input device id
  17. * @param {string} label the label of the device if available
  18. */
  19. constructor(deviceId: string, label: string, groupId?: string);
  20. /** @inheritdoc */
  21. toJSON(): {
  22. kind: string;
  23. groupId: string;
  24. deviceId: string;
  25. label: string;
  26. };
  27. }