-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
3,062 additions
and
4,107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
id: manage_types | ||
sidebar_position: 2 | ||
slug: /call_types/manage | ||
title: Manage Types | ||
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
## Read call types | ||
|
||
<Tabs groupId="examples"> | ||
<TabItem value="js" label="JavaScript"> | ||
|
||
```js | ||
client.video.listCallTypes(); | ||
|
||
//or | ||
client.getCallType({name: 'livestream'}); | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
## Create call type | ||
|
||
<Tabs groupId="examples"> | ||
<TabItem value="js" label="JavaScript"> | ||
|
||
```js | ||
client.video.createCallType({ | ||
name: 'allhands', | ||
settings: { | ||
audio: { mic_default_on: true, default_device: 'speaker' }, | ||
}, | ||
grants: { | ||
admin: [ | ||
VideoOwnCapability.SEND_AUDIO, | ||
VideoOwnCapability.SEND_VIDEO, | ||
VideoOwnCapability.MUTE_USERS, | ||
], | ||
user: [VideoOwnCapability.SEND_AUDIO, VideoOwnCapability.SEND_VIDEO], | ||
}, | ||
}); | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
## Update call type | ||
|
||
<Tabs groupId="examples"> | ||
<TabItem value="js" label="JavaScript"> | ||
|
||
```js | ||
client.video.updateCallType('allhands', { | ||
settings: { | ||
audio: { mic_default_on: false, default_device: 'earpiece' }, | ||
}, | ||
}); | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
## Delete call type | ||
|
||
<Tabs groupId="examples"> | ||
<TabItem value="js" label="JavaScript"> | ||
|
||
```js | ||
client.video.deleteCallType({name: 'allhands'}); | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> |
25 changes: 24 additions & 1 deletion
25
docusaurus/video/docusaurus/docs/api/call_types/permissions.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,29 @@ | ||
--- | ||
id: call_types_permissions | ||
sidebar_position: 2 | ||
sidebar_position: 3 | ||
slug: /call_types/permissions | ||
title: Permissions | ||
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
<Tabs groupId="examples"> | ||
<TabItem value="js" label="JavaScript"> | ||
|
||
```js | ||
client.video.createCallType({ | ||
name: '<call type name>', | ||
grants: { | ||
admin: [ | ||
VideoOwnCapability.SEND_AUDIO, | ||
VideoOwnCapability.SEND_VIDEO, | ||
VideoOwnCapability.MUTE_USERS, | ||
], | ||
user: [VideoOwnCapability.SEND_AUDIO, VideoOwnCapability.SEND_VIDEO], | ||
}, | ||
}); | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> |
63 changes: 62 additions & 1 deletion
63
docusaurus/video/docusaurus/docs/api/call_types/settings.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,67 @@ | ||
--- | ||
id: call_types_settings | ||
sidebar_position: 4 | ||
sidebar_position: 5 | ||
slug: /call_types/settings | ||
title: Settings | ||
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
## Settings | ||
|
||
<Tabs groupId="examples"> | ||
<TabItem value="js" label="JavaScript"> | ||
|
||
```js | ||
client.video.createCallType({ | ||
name: '<call type name>', | ||
settings: { | ||
screensharing: { | ||
access_request_enabled: false, | ||
enabled: true, | ||
}, | ||
}, | ||
}); | ||
|
||
// override settings on call level | ||
call.create({ | ||
data: { | ||
created_by_id: 'john', | ||
settings_override: { | ||
screensharing: { | ||
enabled: false, | ||
}, | ||
}, | ||
}, | ||
}); | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
## Notification settings | ||
|
||
<Tabs groupId="examples"> | ||
<TabItem value="js" label="JavaScript"> | ||
|
||
```js | ||
client.video.createCallType({ | ||
name: '<call type name>', | ||
notification_settings: { | ||
enabled: true, | ||
call_notification: { | ||
apns: { | ||
title: '{{ user.display_name }} invites you to a call', | ||
}, | ||
enabled: true, | ||
}, | ||
session_started: { | ||
enabled: false, | ||
}, | ||
}, | ||
}); | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> |
Oops, something went wrong.