TethrTethr
Guide
Capability Report
Playground
API
  • English
  • 日本語
GitHub
Guide
Capability Report
Playground
API
  • English
  • 日本語
GitHub
  • Type Alias: TethrIdentifier

Type Alias: TethrIdentifier

TethrIdentifier = { model?: string; type: "ptpusb"; usb?: { productId: number; serialNumber?: string; vendorId: number; }; } | { deviceId?: string; label?: string; model?: string; type: "webcam"; }

Defined in: core/src/Tethr.ts:127

A plain, JSON-serializable descriptor of a camera. Returned by Tethr.identifier and accepted by TethrManager.requestCamera so an app can persist a connection and later reconnect to the same — or a same-kind — device. For USB cameras usb.serialNumber pins the exact body; for webcams deviceId pins the exact camera (the MediaDeviceInfo id), with label as the human-readable name and a legacy-friendly fallback.

Edit this page