-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[camera] Pause/resume video recording for Android & iOS #1370
Conversation
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. What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
I signed it! |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
There was a problem hiding this 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.
There was a problem hiding this 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); |
There was a problem hiding this comment.
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.
* 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
* Upgraded Crashlytics to v2 of Flutter Plugins.
* 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
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.