Demo

Media & hardware

Camera, microphone, printer, haptics, and clipboard from @quan-erp/shared-frontend-core.

Overview

Device media and hardware bridges — capture, audio, printing, haptics, and clipboard — all via singleton .instance APIs with permission and cleanup lifecycle.

  • Camera — takePicture, gallery pick, live preview (requestPermission, stopPreview on unmount)
  • Microphone — getUserMedia capture (start/stop pairs; stop on unmount)
  • Printer — printHTML(html) for web print dialogs
  • Vibration & haptics — vibrate(options), cancel()
  • Clipboard — readText, writeText, requestPermission