Skip to content

Commit 62e1baa

Browse files
Merge pull request #8 from DolbyIO/develop
Add the support of layout URL for Remix operation
2 parents 1fb19cf + 2eb2533 commit 62e1baa

File tree

1 file changed

+11
-0
lines changed
  • client/src/dolbyio_rest_apis/communications

1 file changed

+11
-0
lines changed

client/src/dolbyio_rest_apis/communications/remix.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77

88
from dolbyio_rest_apis.communications.internal.http_context import CommunicationsHttpContext
99
from dolbyio_rest_apis.communications.internal.urls import get_comms_url_v2
10+
from dolbyio_rest_apis.core.helpers import add_if_not_none
1011
from .models import RemixStatus
1112

1213
async def start(
1314
access_token: str,
1415
conference_id: str,
16+
layout_url: str=None,
1517
) -> RemixStatus:
1618
r"""
1719
Remix a conference.
@@ -25,6 +27,11 @@ async def start(
2527
Args:
2628
access_token: Access token to use for authentication.
2729
conference_id: Identifier of the conference.
30+
layout_url: Overwrites the layout URL configuration:
31+
null: uses the layout URL configured in the dashboard
32+
(if no URL is set in the dashboard, then uses the Dolby.io default)
33+
default: uses the Dolby.io default layout
34+
URL string: uses this layout URL
2835
2936
Returns:
3037
A :class:`RemixStatus` object that represents the status of the remix.
@@ -35,10 +42,14 @@ async def start(
3542
"""
3643
url = f'{get_comms_url_v2()}/conferences/mix/{conference_id}/remix/start'
3744

45+
payload = {}
46+
add_if_not_none(payload, 'layoutUrl', layout_url)
47+
3848
async with CommunicationsHttpContext() as http_context:
3949
json_response = await http_context.requests_post(
4050
access_token=access_token,
4151
url=url,
52+
payload=payload,
4253
)
4354

4455
return RemixStatus(json_response)

0 commit comments

Comments
 (0)