Skip to content

Commit 0b90506

Browse files
[IMP] discuss: wip recording
see: odoo/sfu#27
1 parent eaaf8d1 commit 0b90506

File tree

5 files changed

+7659
-5386
lines changed

5 files changed

+7659
-5386
lines changed

addons/mail/models/discuss/discuss_channel_member.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ def _join_sfu(self, ice_servers=None, force=False):
448448
response = requests.get(
449449
sfu_server_url + "/v1/channel",
450450
headers={"Authorization": "jwt " + json_web_token},
451+
params={"recordingAddress": "test-url"}, # TODO add a real destination or change the API
451452
timeout=3,
452453
)
453454
response.raise_for_status()
@@ -473,6 +474,7 @@ def _get_rtc_server_info(self, rtc_session, ice_servers=None, key=None):
473474
claims = {
474475
"session_id": rtc_session.id,
475476
"ice_servers": ice_servers,
477+
"permissions": { "recording": True }
476478
}
477479
json_web_token = jwt.sign(claims, key=key, ttl=60 * 60 * 8, algorithm=jwt.Algorithm.HS256) # 8 hours
478480
return {"url": sfu_server_url, "channelUUID": sfu_channel_uuid, "jsonWebToken": json_web_token}

0 commit comments

Comments
 (0)