I am working on a camera&recorder project in Corona which executes as follows:
Upon touch, the camera takes picture, and audio starts recording. Upon next touch:
- the previous picture is saved as "image1.jpg"
- recording stops and audio file saved as "audio"
- next picture is taken 4.next audio starts recording.
This is the recording/capturing part, which is working fine.
Next I have to play the recorded material. for example: from a menu, if image3 is selected, image 3 is displayed on the screen and audio3 starts playing. Now this requires linking the audio files with the images using XML.
I am totally new to XML and I dont know how to use it in Corona. I couldn't find an example to learn from.
Could anyone please tell me how to make the XML file, how to link it to corona and how to achieve the required goal?
If anyone could help me do this in JSON, that would be great too.
Thanks a lot