Skip to main content
Version: 3.x.x

Configure Recording Storage - Android

Storage Configuration​

While recording your rooms, you have the flexibility to store them either on VideoSDK's storage or configure your own storage solution such as AWS S3 Storage, Azure Blob or GCP Cloud Storage. To set up your own storage, you can navigate to the API section in the VideoSDK Dashboard.

  • This feature allows you to configure a storage provider for your room recordings.

  • You can configure storage providers for multiple API keys.

  • Currently, we support AWS S3, Azure Blob and GCP Cloud Storage.

Prerequisites​

How to set up​

Step 1 : Select Api Key​

Dashboard

  • Go to VideoSDK Dashboard.
  • Select the API key you want to set the storage configuration for.
  • Then click on Storage Config Icon in Actions.

Step 2 : Choose Cloud Storage Provider​

Dashboard

  • As you can see in the image, there are 3 Cloud Storage Provider (Aws, Azure, GCP).
  • You can select a Cloud Storage Provider as per your requirements.

Step 3 : Configure Bucket or Container​

For Aws S3 Storage

Aws S3

  • You will need AWS S3 Bucket. Learn to create S3 Bucket.

  • As you can see in the image, you will need to enter accessKeyId, secretAccessKey, region, bucket, and ACL to setup for Aws S3 Storage.

  • Click on Save button.


For Azure Blob Storage:

Azure Blob

  • You will need Azure Blob Container. Learn to create Blob Container.

  • As you can see in the image, you will need to enter connectionString and containerName to setup for Azure Blob.

  • Click on Save button.


For Google Cloud Storage:

GCP Cloud Storage
  1. You will need Google Cloud Storage Bucket. Learn to create Google Cloud Storage Bucket.

  2. After creation, click on the ︙ button in the upper right corner and select Project settings.

  3. Under IAM and Admin, select Service Accounts. In the service account list, click on the ︙ button for the account just added or created before, and select Manage keys.

  4. Click ADD KEY > Create new key. Select JSON in the pop-up box and click CREATE. A json file is downloaded with the name format projectId-xxxxxxxx.json.

  5. Open the downloaded json file, which looks like the following example:

{
"type": "service_account",
"project_id": "videosdk-12345",
"private_key_id": "yourprivateidkeyyourprivateidkeyyourprivateidkey",
"private_key": "-----BEGIN PRIVATE KEY-----\nThisisYourPrivateKeyThisisYourPrivateKeyThisisYourPrivateKey\nThisisYourPrivateKey\nThisisYourPrivateKey\nThisisYourPrivateKey\n-----END PRIVATE KEY-----\n",
"client_email": "xxxx-xxxx@videosdk-12345.iam.gserviceaccount.com",
"client_id": "123456789012345678901",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/videosdk%40videosdk-404307.iam.gserviceaccount.com",
"universe_domain": "googleapis.com"
}
  • As you can see in the image, you will need to enter Project Id, Client Email, Bucket, Private Key to setup for Google Cloud Storage Bucket. You can retrieve these details from the json file.

  • Click on Save button.

Step 4 : Test​

  • Create Room with a token generated from the API key you configured.
  • Join the room with the roomId created and start recording.
  • Then, you can see that recording will be available in your Bucket or Container.
note
  • Each API key can have only one recording storage config at a time.
  • To add a new recording storage config, first delete the current one.

Got a Question? Ask us on discord