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

Save images and audio to main page #47

Open
vtotient opened this issue Jan 11, 2020 · 0 comments
Open

Save images and audio to main page #47

vtotient opened this issue Jan 11, 2020 · 0 comments
Assignees
Labels
New Feature New feature or request

Comments

@vtotient
Copy link
Collaborator

vtotient commented Jan 11, 2020

ACs

There exits two modes for saving images:

  1. Built in camera hardware (cannot use simulator, must use iPhone)
  2. Simulation mode

Option 1 requires using an actual iPhone to take a picture. Since the camera hardware cannot be simulated by the simulator, option 2 mocks the camera functionality. When using the simulator to add a picture, the function will return a stock image instead of opening the camera.

Use either of these modes to "take" pictures and then save those pictures to the main page. The algorithm is as follows:

  1. Get picture from simulator mock or camera
  2. Save picture
    1. In the main page, picture slots should be ordered. The picture should be saved to the next available slot in order
    2. If no slots are available, simply overwrite the first slot

A similar structure exists for the audio recordings. It is necessary to save the corresponding audio pair to the main page as well.

Note:

  1. Do not allow user to save individual audio or images without the corresponding image audio pair. ie. user may not save only image or only audio

It is probably best to create some kind of simple data structure to track the state of the main page.

@vtotient vtotient added the New Feature New feature or request label Jan 11, 2020
@vtotient vtotient changed the title Save images taken with camera to main page Save images and audio to main page Jan 11, 2020
@patrick-ubc patrick-ubc self-assigned this Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants