skio_uvc_camera 0.1.0-beta.1
skio_uvc_camera: ^0.1.0-beta.1 copied to clipboard
USB Video Class (UVC) camera for Flutter on Android (USB OTG) and web: live preview, JPEG capture and the camera's hardware button. Part of skio.
0.1.0-beta.1 #
First beta. The API may still change before 0.1.0. Android and web
backends are verified on an emulator and in Chromium, but not yet with a
real UVC camera; please report results with SkioLog output.
UvcCamera: list devices, open with preferred sizes, live preview throughUvcPreview, JPEG capture (a double-tap produces one image), hardware button presses (press-only, debounced), status stream, idempotent close.UvcSize,UvcFrameFormatandselectPreviewSizefor choosing from the sizes a camera reports.- Platform interface with
UvcCameraPlatformfor fakes in tests. - Android backend: UVCAndroid 1.0.13 through JNI (jnigen), preview into a Flutter texture that follows the surface lifecycle, CAMERA + USB permission in one call, JPEG capture encoded in Java, hardware button, unplug detection. Declares only the CAMERA permission.
- Web backend:
getUserMediapreview in anHtmlElementView, vendor and product IDs from Chrome labels, attach/detach viadevicechange, JPEG capture from the video frame. - Example app: USB camera viewer.