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

[camera] Pause/resume video recording for Android & iOS #1370

Merged
merged 21 commits into from
Aug 19, 2019
Merged

[camera] Pause/resume video recording for Android & iOS #1370

merged 21 commits into from
Aug 19, 2019

Conversation

huulbaek
Copy link
Contributor

I made this for a small project that needed the functionality. I'm not well versed in the plugin structure and JAVA, so if it's completely off, let me know. Also, I would implement it for iOS too, but it doesn't seem that straightforward.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@huulbaek
Copy link
Contributor Author

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@huulbaek huulbaek changed the title Pause/resume video recording for Android [camera] Pause/resume video recording for Android Mar 21, 2019
@amirh amirh added this to Awaiting initial triage in [experimental] Plugins PR tracking Mar 29, 2019
Copy link
Contributor

@bparrishMines bparrishMines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks for the contribution! I added pausing/resuming to the example code and added the iOS portion.

@huulbaek huulbaek requested a review from mklim as a code owner August 7, 2019 19:16
Copy link
Contributor

@mklim mklim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good with one nit. Would it be feasible to test this at all?


try {
mediaRecorder.pause();
result.success(null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This should be outside of the try block here and below, just in the weird offhand chance calling this throws an IllegalStateException. If it did result.error would also throw in the catch block.

@bparrishMines bparrishMines merged commit 05c2505 into flutter:master Aug 19, 2019
@bparrishMines bparrishMines changed the title [camera] Pause/resume video recording for Android [camera] Pause/resume video recording for Android & iOS Aug 27, 2019
sungmin-park pushed a commit to sungmin-park/flutter-plugins that referenced this pull request Dec 17, 2019
* Pause/resume video recording for Android

* Specify type

* Add pausing and resuming to example app

* iOS side of pausing/resuming

* More documentation

* Version bump

* Add video pausing and resuming

* get pausing and recording to work for no audio

* It works

* Formatting

* Add test for pausing and resuming

* Call success outside try catch block

* formatting

* Disable audio in test and call result on iOS
julianscheel pushed a commit to jusst-engineering/plugins that referenced this pull request Mar 11, 2020
* Upgraded Crashlytics to v2 of Flutter Plugins.
Akachu pushed a commit to Akachu/flutter_camera that referenced this pull request Apr 27, 2020
* Pause/resume video recording for Android

* Specify type

* Add pausing and resuming to example app

* iOS side of pausing/resuming

* More documentation

* Version bump

* Add video pausing and resuming

* get pausing and recording to work for no audio

* It works

* Formatting

* Add test for pausing and resuming

* Call success outside try catch block

* formatting

* Disable audio in test and call result on iOS
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
[experimental] Plugins PR tracking
  
Awaiting initial triage
4 participants