...
Code Block | ||
---|---|---|
| ||
vod_live_loop=true |
VOD capturing from AWS S3 or from other S3 compatible storage
VOD stream can be captured from file placed to AWS S3 storage. Comparing with VOD capture from local disk, file from external storage is downloaded and captured sequentally.
...
- bucket is S3 bucket name
- sample.mp4 is file name
Operation flowchart
1. Browser requests VOD capture from AWS file
2. WCS server sends request to AWS
3. File is downloaded to WCS server
4. WebRTC stream from file is sending to browser for playback
Set up
AWS S3 credentials configuration
To download files from AWS S3 bucket, S3 credentials must be set in flashphoner.properties fileSince build 5.2.939 it is possible to set the full file URL in S3 storage, this allows to capture VOD from other S3 storages (Digital Ocean, Selectel etc)
Digital Ocean Spaces URL example
Code Block | ||
---|---|---|
| ||
vod://s3/https://ams3.digitaloceanspaces.com/myspace/folder/file.mp4 |
Selectel URL example
Code Block | ||
---|---|---|
| ||
vod://s3/https://s3.selcdn.ru/mystorage/file.mp4 |
Operation flowchart
1. Browser requests VOD capture from AWS file
2. WCS server sends request to AWS
3. File is downloaded to WCS server
4. WebRTC stream from file is sending to browser for playback
Set up
S3 credentials configuration
AWS
To download files from AWS S3 bucket, S3 credentials must be set in flashphoner.properties file
Code Block | ||
---|---|---|
| ||
aws_s3_credentials=zone;login;hash |
Where
- zone - AWS region where bucket is placed
- login - Access Key ID
- hash - Secret Accesss Key
S3 credentials setting example:
Code Block | ||
---|---|---|
| ||
aws_s3_credentials=eu-central-1;AA22BB33CC44DE;DhlAkpZ4adclHhbLwhTNL4hvWTo80Njo |
Digital Ocean Spaces
To download files from DO Spaces set the credentials as
Code Block | ||
---|---|---|
| ||
aws_s3_credentials=ams3;access_key;secret |
Where
- ams3 - digitaloceanspaces.com subdomain
- access_key - storage access key
- secret - storage access secret code
Selectel
To download files from Selectel S3 set the credentials as
Code Block | ||
---|---|---|
| ||
aws_s3_credentials=zoneru-1a;login;hashpassword |
Where
- zone ru-1a - AWS storage region where bucket is placed
- login - Access Key ID
- hash - Secret Accesss Key
S3 credentials setting example:
...
theme | RDark |
---|
...
- user name
- password - password
Capturing VOD stream from file while it is downloading
...