| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/realtime/realtimekit/recording-guide/custom-cloud-storage/ | [Back] [Original] |
You can pass an optional object storage_config in the start recording request
to publish the recording directly to your cloud provider. If a path is
specified, the recorded video will be stored there, otherwise the default is the
root of the directory.
The filename for recording will be the same as given in output_file_name.
Note
Ensure that the cloud keys you provide to RealtimeKit APIs have only limited access.
You can configure storage configs for RealtimeKit Recordings in the following ways:
You can specify storage configuration details using RealtimeKit Dashboard for all meetings.
[Recording Storage Screenshot]
Note
If you specify storage configuration in the Start Recording API request, that configuration takes precedence over the storage details configured in the RealtimeKit Dashboard.
To familiarize yourself with the RealtimeKit REST APIs, we recommend exploring the RealtimeKit REST API.
This allows for the most granular level of control, and lets you specify a storage_config for a specific recording started on a meeting.
curl --request POST \
--url https://api.cloudflare.com/client/v4/accounts/<account_id>/realtime/kit/<app_id>/recordings \
--header 'Authorization: Bearer <api_authorization_token>' \
--header 'Content-Type: application/json' \
--data '{
"meeting_id": "97440c6a-140b-40a9-9499-b23fd7a3868a",
"storage_config": {
"type": "cloudflare",
"access_key": "your-access-key",
"secret": "your-secret-key",
"bucket": "your-bucket-name",
"path": "/",
"account_id": "your-account-id"
}
}'
To familiarize yourself with the RealtimeKit REST APIs, we recommend exploring the RealtimeKit REST API.
Currently, the following cloud providers are supported:
To transfer recordings to Cloudflare R2, set the following fields in
the storage_config parameter:
cloudflare.To transfer recordings to the AWS S3 bucket, set the following fields in the
storage_config parameter:
aws.aws_access_key_id.aws_secret_access_key.ap-south-1.To transfer recordings to the Azure Blob Storage, set the following fields in
the storage_config parameter:
azure.To transfer recordings to the DigitalOcean Spaces, set the following fields in
the storage_config parameter:
digitalocean.SGP1. For more information, see
Region Availability Matrix .To transfer recordings to GCS, set the following fields in
the storage_config parameter:
gcs.US multi-region. For more information, see
Bucket locations .You can change the name of the recording file using the file_name_prefix field. The default format for recorded file name is roomname_timestamp, but you can add an alphanumeric and underscore prefix to the default file name.
It's important to note that you can only add a prefix to the default format; you can't change the entire file name. For example, if you teach an online physics class at 9 a.m. using RealtimeKit, you could add Physics_9am to the file name. Physics_9am_roomname_timestamp would be the new file name.
For more information, see start recording a meeting.
Publish Recorded File to Your Cloud Provider Guide| Web Proxy Viewer | New URL | Original Page |