What is Storage Integration?
Ant Media Server provides seamless cloud storage integration to automatically upload your recorded streams, VOD files, and preview images to cloud storage providers. This ensures your media files are backed up, scalable, and accessible from anywhere.Supported Storage Providers
AWS S3
Amazon S3 and S3-compatible storage services
Google Cloud Storage
Google Cloud Platform storage buckets
Key Features
Automatic Upload
Automatic Upload
Files are automatically uploaded to your configured storage as soon as recording completes. You can choose whether to delete local files after successful upload.
Flexible Permissions
Flexible Permissions
Configure file permissions (public-read, private, etc.) and cache control policies for uploaded files.
Storage Classes
Storage Classes
Choose appropriate storage classes (Standard, Glacier, etc. for S3) to optimize costs based on access patterns.
Progress Tracking
Progress Tracking
Monitor upload progress with built-in progress listeners for large files.
Common Configuration
All storage clients share these common configuration parameters:| Parameter | Description | Default |
|---|---|---|
enabled | Enable/disable storage integration | false |
storageName | Bucket name or storage container | - |
accessKey | Access key for authentication | - |
secretKey | Secret key for authentication | - |
region | Storage region (e.g., us-west-1) | - |
endpoint | Custom endpoint (optional, for S3-compatible services) | - |
permission | File permission/ACL | public-read |
cacheControl | Cache control header | no-store, no-cache, must-revalidate, max-age=0 |
storageClass | Storage tier (e.g., STANDARD, GLACIER) | - |
Setup Process
Choose a Storage Provider
Select the cloud storage provider that best fits your needs:
- AWS S3: Most popular, supports S3-compatible services
- Google Cloud Storage: Integrated with GCP ecosystem
Configure Credentials
Set up access credentials in your storage provider’s console and configure them in Ant Media Server.
Enable Storage
Update your application configuration to enable the storage client and start automatic uploads.
Storage Operations
The storage client provides these core operations:Save Files
Delete Files
Check File Existence
Retrieve Files
Next Steps
Configure AWS S3
Set up Amazon S3 or S3-compatible storage
Configure Google Cloud
Set up Google Cloud Storage integration
Best Practice: Always test your storage configuration with a small file before enabling it in production.
