There are four ways to get the the files generated from a recording. Which one is most appropriate for you will depend on the type of application you're building and your comfort with coding.
Manual download
Use a <form> element
Use the JS API
Use a server callback
Manual download
Use a <form> element
Use the JS API
Use a server callback
Manually Downloading
All published recordings can be manually downloaded from CameraTag.com. Clicking on the name of an App in the admin panel will present a list of published assets. Clicking on an individual asset will open a lightbox withe the asset on the left and various actions (inlcuding download) on the right.Note that you can configure email notifications in the App's setup page so you will know when new assets are available for download. To learn more about email notifications please see the Email Notification documentation.
Using a <form> element
Your CameraTag will create two files for each recording- an mp3 audio file
- a png image of the audio waveform
For example, if you included the following a CameraTag named "MyCamera" that recorded in 360p:
<form action='/some_url'> <microphone id='MyRecorder1' data-uuid='[YOUR_APP_UUID]'></microphone> </form>
<form action='/some_url'> <input type='hidden' name='MyMicrophone[uuid]' value='[AUDIO_UUID]'/> <input type='hidden' name='MyMicrophone[mp3_url]' value='http://url.to.your/mp3_audio' /> <input type='hidden' name='MyMicrophone[waveform]' value='http://url.to.your/waveform.png' /> </form>
Using the JS API
After a user has published their recording you can access the URLs of the associated files using the JS API. The getVideo() method returns a JS object containing data about the recorded audio including a formats array. For each reocridng format you've chosen for your camera you will see a corresponding object in the formats array containg the format's file URLsCameraTag.observe('MyRecorder1', 'initialized', function(){ var myMicrophone = CameraTag.microphones["MyRecorder1"]; var myAudio = myCamera.getAudio(); var mp3_url = myAudio.mp3_url })