File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
client/src/dolbyio_rest_apis/communications Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 77
88from dolbyio_rest_apis .communications .internal .http_context import CommunicationsHttpContext
99from dolbyio_rest_apis .communications .internal .urls import get_comms_url_v2
10+ from dolbyio_rest_apis .core .helpers import add_if_not_none
1011from .models import RemixStatus
1112
1213async 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 )
You can’t perform that action at this time.
0 commit comments