Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[camera] Implement interface methods to allow concurrent stream and record #6665

Conversation

adam-harwood
Copy link
Contributor

Recreated from #6290, that PR got messed up with some bad git merge. I tried to reset and force but GitHub closed the PR and I couldn't re-open it.

Implemented method to concurrently stream and record introduced in #6550. This feature is useful, for example, in applications that use image recognition. The customer will want some immediate feedback as the video is being recorded (where an ML model might be run on the captured images), as well as to upload the video to a server at the end for final server-side processing.

I have added unit tests to the higher-level dart abstractions, added integration tests for the underlying android and iOS implementations, and tested manually on Android and iOS devices. I have updated camera_web to throw an exception if the user attempts to enable streaming when recording (given that streaming is not yet supported).

Closes flutter/flutter#83634

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [relevant style guides] and ran [the auto-formatter]. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • I signed the [CLA].
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes].
  • I updated CHANGELOG.md to add a description of the change, [following repository CHANGELOG style].
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • All existing and new tests are passing.

@adam-harwood
Copy link
Contributor Author

Sorry for having to create a new PR and lose the history from #6290. I couldn't find a way to re-open it after GitHub auto-closed it.

@adam-harwood
Copy link
Contributor Author

Looks like I need to break this into a few other PRs. Moving back to draft.

@adam-harwood adam-harwood marked this pull request as draft November 3, 2022 01:32
@adam-harwood adam-harwood changed the title Implement interface methods to allow concurrent stream and record [camera] Implement interface methods to allow concurrent stream and record Nov 3, 2022
This part was lost in the merge resolution
@bparrishMines
Copy link
Contributor

@adam-harwood I reopened #6290 for you if you would like to keep using it.

@stuartmorgan-g
Copy link
Contributor

Closing since it looks like re-opening #6290 obsoleted this.

@adam-harwood
Copy link
Contributor Author

It did, yes thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Camera]: Record video while Image Stream process
3 participants