Skip to content

Save images and audio to main page #47

@vtotient

Description

@vtotient

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.

Metadata

Metadata

Assignees

Labels

New FeatureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions