Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to photo input item #168

Merged
merged 1 commit into from
Jun 29, 2016
Merged

Conversation

diegosanchezr
Copy link
Contributor

@diegosanchezr diegosanchezr commented Jun 29, 2016

  • Just one capture session per input component.
  • Avoids starting/stopping capture during collection reloads, which can make the live camera take longer to capture or even hang.
  • Moves creation/destruction of capture session to the background: when opening/closing the input component many times it was resulting in capture start / stop blocking the main thread for some seconds on iOS 8
  • Queues updates in the collection view: doing a reloadData right after reloadItemsAtIndexPaths (update video) results in the visible cells not being refreshed

 - Just one capture session per input component.
 - Avoids starting/stoping capture during collection reloads, which can make the live camera take longer to capture or even hang.
 - Moves creation/destruction of capture session to the background: when opening/closing the input component many times it was resulting in capture start / stop blocking the main thread for some seconds on iOS 8
 - Queues updates in the collection view: doing a reloadData right after reloadItemsAtIndexPaths (update video) results in the visible cells not being refreshed
@diegosanchezr diegosanchezr force-pushed the photo-input-item-improvements branch from 4e2dfd2 to 2c67f98 Compare June 29, 2016 14:32
@diegosanchezr diegosanchezr changed the title [WIP] Improvements to photo input item Improvements to photo input item Jun 29, 2016
@diegosanchezr diegosanchezr merged commit 7a0f8d8 into dev Jun 29, 2016
@diegosanchezr diegosanchezr deleted the photo-input-item-improvements branch June 29, 2016 23:04
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