UNPKG

@privateid/ultra-web-sdk-alpha

Version:
30 lines 1.73 kB
/** * Camera Service Module * * This module provides a factory-based approach to camera management across different * browsers and platforms. Each platform has its own specialized service implementation. * * Usage: * ```typescript * import { CameraServiceFactory } from './support/camera'; * * const cameraService = CameraServiceFactory.create(); * await cameraService.openCamera({ videoElementId: 'video' }); * ``` */ // Main factory for creating camera services export { CameraServiceFactory } from './CameraServiceFactory'; // Base classes and interfaces (for advanced usage) export { BaseCameraService } from './services/BaseCameraService'; // Platform-specific implementations (for testing or direct usage) export { FirefoxCameraService } from './services/FirefoxCameraService'; export { MobileCameraService } from './services/MobileCameraService'; export { MacSafariCameraService } from './services/MacSafariCameraService'; export { DesktopCameraService } from './services/DesktopCameraService'; // Utility functions (for advanced usage) export { checkDeviceIsVirtualCamera, getCameraList, getVideoConstraints, isFaceTimeCamera, isMobileBackCameraPortrait, calculateWidth, calculateHeight, calculateAspectRatio, createBestResolutionStream, createBasicVideoConstraints, createFirefoxVideoConstraints, createMacSafariVideoConstraints, getFilteredVideoDevices, getVideoInputDevices, filterDevicesByPattern, getExternalDevice, } from './camera.utils'; // Constants export { CAMERA_HEIGHT, CAMERA_WIDTH, CAMERA_LOW_RES_WIDTH, CAMERA_LOW_RES_HEIGHT } from './camera.constants'; // Default export for convenience export { CameraServiceFactory as default } from './CameraServiceFactory'; //# sourceMappingURL=index.js.map