Skip to content

Commit

Permalink
Configuring recording storage
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaarbonel committed Feb 13, 2024
1 parent 39786b2 commit a692aaa
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion docusaurus/video/docusaurus/docs/api/recording/storage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,27 @@ await call.startRecording({
```
</TabItem>
<TabItem value="py" label="Python">

```py
// TODO: code example for Python
# 1. create a new storage with all the required parameters
aws_s3_config = S3Request(
s3_region='us-east-1',
s3_api_key='my-access-key',
s3_secret='my-secret',
)

response = client.video.create_external_storage(
name='my-s3',
storage_type='s3',
bucket='my-bucket',
path='directory_name/',
aws_s3=aws_s3_config
)
# 2. update the call type to use the new storage
client.video.update_call_type(name='allhands', external_storage= "my-s3")

# 3. alternative, specify the storage when starting call recording
call.start_recording(recording_external_storage= "my-s3")
```
</TabItem>
<TabItem value="curl" label="cURL">
Expand Down

0 comments on commit a692aaa

Please sign in to comment.