tethr
Version:
Controlls USB-connected cameras, webcam, and smartphone camera from browser
11 lines (10 loc) • 446 B
TypeScript
/// <reference types="w3c-web-usb" />
import { OperationResult } from '../Tethr';
import { TethrPTPUSB } from './TethrPTPUSB';
/**
* Try to initialize the given usb device as a PTP camera.
* @param usb The USB device to initialize
* @returns The initialized TethrPTPUSB object or null if the device is not a PTP camera
*/
export declare function initTethrUSBPTP(usb: USBDevice): Promise<OperationResult<TethrPTPUSB>>;
export { TethrPTPUSB };