Store recording
This guide will show you how to store the references to the recording when it has been uploaded and saved.
Upload method
The recording made by the user will not be uploaded until the upload method have been called. The upload method will return a promise and once that promise is fulfilled the result will contain a reference to the recording.
const data = await recorder.upload();
const { recordings } = data;
const [ recording ] = recordings;
const recordingReference = recording.uuid; // save this
caution
In order to stream the recordings after creation - you *** NEED *** to store the references to the videos and documents in your own system.
Data object
This example will show you how the data object is structured.
{
"recordings": [
{
"name": "recording.webm",
"uuid": "3f9b205d-0eb9-421f-b6ed-3fd7a781b9ff"
}
]
}