Skip to content

Commit

Permalink
update layout related JS snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
szuperaz committed Oct 25, 2023
1 parent 98ea02a commit 87ed6f4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,13 @@ call.listRecordings();

```py
call.list_recordings();

// optionally query recordings for a specific session
call.list_recordings('<session ID>');
```

</TabItem>
<TabItem value="curl" label="cURL">

```bash
curl -X GET "https://video.stream-io-api.com/video/call/default/${CALL_ID}/${SESSION_ID}/recordings?api_key=${API_KEY}" \
curl -X GET "https://video.stream-io-api.com/video/call/default/${CALL_ID}/recordings?api_key=${API_KEY}" \
-H "Authorization: ${JWT_TOKEN}"
```

Expand Down Expand Up @@ -217,7 +214,7 @@ You can configure your calls to only record the audio tracks and exclude the vid
call.update({
settings_override: {
recording: {
mode: 'available',
mode: VideoRecordSettingsRequestModeEnum.AVAILABLE,
audio_only: true,
},
},
Expand Down Expand Up @@ -315,13 +312,14 @@ const layoutOptions = {
'participant_label.background_color': 'transparent',
};

client.updateCallType({
client.video.updateCallType(callTypeName, {
settings: {
recording: {
mode: 'available',
mode: VideoRecordSettingsRequestModeEnum.AVAILABLE,
audio_only: false,
quality: VideoRecordSettingsRequestQualityEnum._1080P,
layout: {
name: 'spotlight',
name: VideoLayoutSettingsNameEnum.SPOTLIGHT,
options: layoutOptions,
},
},
Expand Down Expand Up @@ -442,13 +440,14 @@ The best way to find the right CSS setup is by running the layout app directly,
<TabItem value="js" label="JavaScript">

```js
client.updateCallType({
client.video.updateCallType(callTypeName, {
settings: {
recording: {
mode: 'available',
mode: VideoRecordSettingsRequestModeEnum.AVAILABLE,
audio_only: false,
quality: VideoRecordSettingsRequestQualityEnum._1080P,
layout: {
name: 'spotlight',
name: VideoLayoutSettingsNameEnum.SPOTLIGHT,
external_css_url: 'https://path/to/custom.css',
},
},
Expand Down Expand Up @@ -477,13 +476,14 @@ The layout app used to record calls is available on Github and is a good startin
<TabItem value="js" label="JavaScript">

```js
client.updateCallType({
client.video.updateCallType(callTypeName, {
settings: {
recording: {
mode: 'available',
mode: VideoRecordSettingsRequestModeEnum.AVAILABLE,
audio_only: false,
quality: VideoRecordSettingsRequestQualityEnum._1080P,
layout: {
name: 'custom',
name: VideoLayoutSettingsNameEnum.CUSTOM,
external_app_url: 'https://path/to/layout/app',
},
},
Expand Down

0 comments on commit 87ed6f4

Please sign in to comment.