This repository has been archived by the owner on Aug 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add agent reader & writer config endpoints
- Loading branch information
1 parent
736e16b
commit 256bd96
Showing
31 changed files
with
2,991 additions
and
45 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 +1 @@ | ||
<mxfile modified="2020-07-08T19:58:10.575Z" host="app.diagrams.net" agent="5.0 (Macintosh)" etag="BTe2pN7ckRQpljdUa32l" version="13.4.0" type="device"><diagram id="oY3ui7ZUPCmgsgYIyXuZ" name="Page-1">7V3bcts4Ev0aVc0+ZIpXmXqMFCeTWSfribMzybyoIBGWmFCkloRsy1+/IAlIlADKVATwMumUKyWCNxA4OGycbjYG9mT19C5B6+WH2MfhwDL8p4H9ZmBZnjui/2cF26LAHQ2LgkUS+EWRuS+4C54xKzRY6SbwcXpwIInjkATrw8J5HEV4Tg7KUJLEj4eH3cfh4V3XaIGFgrs5CsXSvwKfLPljGfvy33CwWPI7mwbbs0L8YFaQLpEfP5aK7OuBPUnimBS/Vk8THGZtx9ulOO9txd5dxRIckTonXE9uZ8Zfxp39Mfny/t0tip6tr69su7jMAwo37IlpjVasxmTLmyF9DFYhiujW+D6OyB3bY9Dt+TII/Ru0jTdZNVKC5t/51ngZJ8EzPR6FdJdJC+juhLBetobZ1YIwnMRhnOT3sec+nnmzgzPvsiuyeyU4pefe8mc2j4o+oKeDA29QSngt4zBE6zSY5fXOTlyhZBFE45gQ+rzFQfwp3x5W6j7/R/ejMFhEtGxO74UT3hbF05hO/nhJ/B2XTrWH9simHTAWe4t14ANOCH4qFbHee4fjFSbJlh7C9loeQxIbSp75q1s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8m2c5+riQqBzJATaxqgMIOF417jseOdqdATQosZ7uO4evRaC76fR+ua/fvD18+dvf5K30af3f48lGRHzGGCR0kCJHrStRA8P8WGNzLrJQJRI0VL8iEo0qNAtqdAnx3cnc4FIawwa9IVG1slx2mkJWlpzyRLVsPxnU9M2NZzSZBoQaY1BdVZMJ70QnaU1F6fvu4/e4BO4HnFKk3lApDWGL1UUc0ovPlSRK1gCFOBDld4SS6N5QKRwEufUwCyXKcx9YBb5tE2c/RQGSstJeydvrsfeeAAy3csynePUTAJiOidEOna3/UDf3e44PNUyZKqgVQO1KKStFdH31jjzUKQCeBXIzZY4EwO9sEt6oXX22tmtC4aWGPgBiqECxVB79Ic+RMiWDiyluQHNsHEz/HxeaV00tCDSQzWl9CLSQ151Ue6BbHz9IpTWFUMOWCAUZYTSi9TBcjCAaPhPIpdGVUM5oEA2VMwudn91Q1tDKmmgEM0UUjdbsIqUJnLUaMiK9JNTiPY1mPSBYST0/bmx7eWY9RNpRhSlEpEEzUuD60+Gu7PQev67Tmi9CAVJBPypoLxyAPzJebPiAHghAt02D30JpulyXwK/SPFM7Lw9woRLWe5R8LtzdXyp4rGFS50dln90I2YHVVXs6HCX5TxQFWQvXVDYvXgkXfCVyDlQ/tFkQC8PzlpjXIryH/u4hL/KXswc5VSs9qw8G5AUGa2mEDsHGUrTPWnr4epYRfUdTDeTOCZlpkjQevkh9jNV8Pr/</diagram></mxfile> | ||
<mxfile modified="2021-03-19T05:07:47.385Z" host="app.diagrams.net" agent="5.0 (Macintosh)" etag="O_ob6If4-mYaeSuaFBPp" version="14.4.3" type="device"><diagram id="oY3ui7ZUPCmgsgYIyXuZ" name="Page-1">7V1bc9s2E/01enRH4sWWHiPZTtM6qRvna+O+aCARluhQhEpCtuRf/4EkqIux1MUmCSLdTmZqQryAwMHh7uJg0bIHs+XHiMynn5lHg5bV9pYt+7JlWR2n64j/JSUrWdLuWVnJJPI9WbYpuPNfaH6iLF34Ho13TuSMBdyf7xaOWRjSMd8pI1HE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YOPKScqimEfmGw/KeWE26kz5QQMJdULx5QTNYeND0BqDwWcEjauLOUEXD9VGoZh41pVHNnI1hI2hlUlas56+cFC2alGddhb2KXOdBMwljBzvUZ5WNOUp8DqGDqmwgofPvkeZRm5jBgLkFgaTix1JpqAsYSrZDQSi9MwYlEnEXJiIQvPR2Ixh1hqzTcBgwkV7RqZpSBcp41ZVFFVEnV5jnyOAbwmB/Beq0KPj+CVkX0CxhIcDMYIXsMjeBkHNDeCB+izMIJX71erwKbRFsFTY7pxsp0tetkNM4YPUIv28J2thoJ1E8t/yBbuNcsWBqSfKaugi20Wq2iP3aHmUyOr2AV+kzZWUcMtqZkyjOhstMlCjazScFbRH7iz1eklpJXaaMVuGK0A62wTOwVpxTBaATJS1EwrmNJeI624DaOVn35Xwez9TtVo79126fBik4JerkekbatfgYb26dv6Zq+cuOF9k+uw6+2bEts5n/Spvp0LFqW8ysay3jwxv0VWMXnVprdOXivz6jmuPC5cLKNkiWm/AstJi2XEYcQY3z49IvPpZ+bR5Iz/Aw==</diagram></mxfile> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Agent Reader Config | ||
|
||
Each agent sets his own config for each writer so he can mute writers selectively just for himself. | ||
|
||
## Properties | ||
|
||
Name | Type | Default | Description | ||
------- | -------- | ---------- | ------------------------------------------ | ||
room_id | uuid | _required_ | The **Room** identifier. | ||
configs | [object] | [] | The list of **Agent Reader Config Items**. | ||
|
||
# Agent Reader Config Item | ||
|
||
## Properties | ||
|
||
Name | Type | Default | Description | ||
------------- | -------- | ---------- | ---------------------------------------------- | ||
agent_id | agent_id | _required_ | Writer identifier which the config applies to. | ||
receive_video | bool | true | Whether to receive video from the writer. | ||
receive_audio | bool | true | Whether to receive audio from the writer. |
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,25 @@ | ||
# Read | ||
|
||
Retrieve own **Agent Reader Config** state. | ||
|
||
|
||
|
||
## Multicast request | ||
|
||
**Properties** | ||
|
||
Name | Type | Default | Description | ||
---------------- | ------ | ---------- | ---------------------------------- | ||
method | String | _required_ | Always `agent_reader_config.read`. | ||
|
||
**Payload** | ||
|
||
Name | Type | Default | Description | ||
------- | ---- | ---------- | -------------------- | ||
room_id | Uuid | _required_ | The room identifier. | ||
|
||
|
||
|
||
## Unicast response | ||
|
||
If successful, the response payload contains a requested **Agent Reader Config** state. |
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,31 @@ | ||
# Update | ||
|
||
Update or initialize own **Agent Reader Configs** in bulk. | ||
Configs get merged into the current state so one may send only diffs. | ||
|
||
One must enter the room first and the room must be opened. | ||
|
||
The room must have `owned` RTC sharing policy. | ||
|
||
The writer for which we want to apply config for must have created an owned RTC in the room. | ||
|
||
## Multicast request | ||
|
||
**Properties** | ||
|
||
Name | Type | Default | Description | ||
---------------- | ------ | ---------- | ---------------------------------------- | ||
method | String | _required_ | Always `agent_reader_connection.update`. | ||
|
||
**Payload** | ||
|
||
Name | Type | Default | Description | ||
------- | -------- | ---------- | ---------------------------------------------- | ||
room_id | uuid | _required_ | The **Room** identifier. | ||
configs | [object] | [] | Array of **[Agent Reader Config Item](../agent_reader_config.html#agent-reader-config-item)** objects. | ||
|
||
## Unicast response | ||
|
||
If successful, the response payload contains current | ||
**[Agent Reader Config](../agent_reader_config.html#agent-reader-config)** state for all RTCs | ||
in the room for the agent that made the request. |
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,24 @@ | ||
# Agent Writer Config | ||
|
||
**Agent Writer Config** affects the writer and hence all of his readers. | ||
Muting the writer on this level also prevents media to be recorded. | ||
One can also set REMBs to control requested media bitrate. | ||
|
||
## Properties | ||
|
||
Name | Type | Default | Description | ||
------- | -------- | ---------- | ------------------------------------------ | ||
room_id | uuid | _required_ | The **Room** identifier. | ||
configs | [object] | [] | The list of **Agent Writer Config Items**. | ||
|
||
# Agent Writer Config Item | ||
|
||
## Properties | ||
|
||
Name | Type | Default | Description | ||
--------- | -------- | ---------- | ----------------------------------------------- | ||
agent_id | agent_id | _required_ | Writer identifier which the config applies to. | ||
send_video | bool | true | Whether the writer is allowed to publish video. | ||
send_audio | bool | true | Whether the writer is allowed to publish audio. | ||
video_remb | int | _required_ | Maximum video bitrate requested for the writer. | ||
audio_remb | int | _required_ | Maximum audio bitrate requested for the writer. |
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,25 @@ | ||
# Read | ||
|
||
Retrieve **Agent Writer Config** state. | ||
|
||
|
||
|
||
## Multicast request | ||
|
||
**Properties** | ||
|
||
Name | Type | Default | Description | ||
---------------- | ------ | ---------- | ---------------------------------- | ||
method | String | _required_ | Always `agent_writer_config.read`. | ||
|
||
**Payload** | ||
|
||
Name | Type | Default | Description | ||
------- | ---- | ---------- | -------------------- | ||
room_id | Uuid | _required_ | The room identifier. | ||
|
||
|
||
|
||
## Unicast response | ||
|
||
If successful, the response payload contains a requested **Agent Writer Config** state. |
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,36 @@ | ||
# Update | ||
|
||
Update or initialize own **Agent Writer Configs** in bulk. | ||
Configs get merged into the current state so one may send only diffs. | ||
|
||
One must enter the room first and the room must be opened. | ||
|
||
## Multicast request | ||
|
||
**Properties** | ||
|
||
Name | Type | Default | Description | ||
---------------- | ------ | ---------- | ---------------------------------------- | ||
method | String | _required_ | Always `agent_writer_connection.update`. | ||
|
||
**Payload** | ||
|
||
Name | Type | Default | Description | ||
------- | -------- | ---------- | ---------------------------------------------- | ||
room_id | uuid | _required_ | The **Room** identifier. | ||
configs | [object] | [] | Array of **[Agent Writer Config Item](../agent_writer_config.md#agent-writer-config-item)** objects. | ||
|
||
## Unicast response | ||
|
||
If successful, the response payload contains current | ||
**[Agent Writer Config](../agent_writer_config.md#agent-writer-config)** state for all RTCs in the room. | ||
|
||
## Broadcast event | ||
|
||
A notification is being sent to the _audience_ topic. | ||
|
||
**URI:** `audiences/:audience/events` | ||
|
||
**Label:** `agent_writer_config.update`. | ||
|
||
**Payload:** current **Agent Writer Config** state for all RTCs in the room. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DROP TABLE rtc_reader_config; | ||
DROP TABLE rtc_writer_config; |
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,20 @@ | ||
CREATE TABLE rtc_reader_config ( | ||
rtc_id UUID NOT NULL, | ||
reader_id agent_id NOT NULL, | ||
receive_video BOOLEAN NOT NULL, | ||
receive_audio BOOLEAN NOT NULL, | ||
|
||
FOREIGN KEY (rtc_id) REFERENCES rtc (id) ON DELETE CASCADE, | ||
PRIMARY KEY (rtc_id, reader_id) | ||
); | ||
|
||
CREATE TABLE rtc_writer_config ( | ||
rtc_id UUID NOT NULL, | ||
send_video BOOLEAN NOT NULL, | ||
send_audio BOOLEAN NOT NULL, | ||
audio_remb BIGINT CHECK (video_remb IS NULL OR video_remb > 0), | ||
video_remb BIGINT CHECK (audio_remb IS NULL OR audio_remb > 0), | ||
|
||
FOREIGN KEY (rtc_id) REFERENCES rtc (id) ON DELETE CASCADE, | ||
PRIMARY KEY (rtc_id) | ||
); |
Oops, something went wrong.