Skip to content

feat: Add startImageStream/stopImageStream for real-time NV21 frame access - #85

Open
dev-wod wants to merge 1 commit into
alexey-pelykh:mainfrom
dev-wod:feature/start-image-stream
Open

feat: Add startImageStream/stopImageStream for real-time NV21 frame access#85
dev-wod wants to merge 1 commit into
alexey-pelykh:mainfrom
dev-wod:feature/start-image-stream

Conversation

@dev-wod

@dev-wod dev-wod commented Mar 5, 2026

Copy link
Copy Markdown

Summary

Added continuous image stream support to enable real-time NV21 frame
processing (e.g., ML Kit, computer vision) via EventChannel.

Changes

  • Native (Java): Added UvcCameraImageStreamFrameCallback,
    startImageStream/stopImageStream in platform and method call handler
  • Dart: Added platform interface, implementation, and controller API

Usage

controller.startImageStream((frame) {
  final bytes = frame['bytes'];
  final width = frame['width'];
  final height = frame['height'];
  // Process NV21 frame data here
});

- Add UvcCameraImageStreamFrameCallback for NV21 frame streaming
- Add startImageStream/stopImageStream to UvcCameraPlatform (native)
- Add MethodChannel routing in UvcCameraNativeMethodCallHandler
- Add platform interface and implementation for Dart side
- Add controller API with stream subscription management
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant