1212
1313def _get_kwargs (
1414 room_id : str ,
15+ component_id : str ,
1516 * ,
1617 json_body : SubscriptionConfig ,
1718) -> Dict [str , Any ]:
1819 json_json_body = json_body .to_dict ()
1920
2021 return {
2122 "method" : "post" ,
22- "url" : "/hls /{room_id}/subscribe" .format (
23+ "url" : "/room /{room_id}/component/{component_id }/subscribe" .format (
2324 room_id = room_id ,
25+ component_id = component_id ,
2426 ),
2527 "json" : json_json_body ,
2628 }
@@ -63,14 +65,16 @@ def _build_response(
6365
6466def sync_detailed (
6567 room_id : str ,
68+ component_id : str ,
6669 * ,
6770 client : AuthenticatedClient ,
6871 json_body : SubscriptionConfig ,
6972) -> Response [Union [Any , Error ]]:
70- """Subscribe the HLS component to the tracks of peers or components
73+ """Subscribe component to the tracks of peers or components
7174
7275 Args:
7376 room_id (str):
77+ component_id (str):
7478 json_body (SubscriptionConfig): Subscription config
7579
7680 Raises:
@@ -83,6 +87,7 @@ def sync_detailed(
8387
8488 kwargs = _get_kwargs (
8589 room_id = room_id ,
90+ component_id = component_id ,
8691 json_body = json_body ,
8792 )
8893
@@ -95,14 +100,16 @@ def sync_detailed(
95100
96101def sync (
97102 room_id : str ,
103+ component_id : str ,
98104 * ,
99105 client : AuthenticatedClient ,
100106 json_body : SubscriptionConfig ,
101107) -> Optional [Union [Any , Error ]]:
102- """Subscribe the HLS component to the tracks of peers or components
108+ """Subscribe component to the tracks of peers or components
103109
104110 Args:
105111 room_id (str):
112+ component_id (str):
106113 json_body (SubscriptionConfig): Subscription config
107114
108115 Raises:
@@ -115,21 +122,24 @@ def sync(
115122
116123 return sync_detailed (
117124 room_id = room_id ,
125+ component_id = component_id ,
118126 client = client ,
119127 json_body = json_body ,
120128 ).parsed
121129
122130
123131async def asyncio_detailed (
124132 room_id : str ,
133+ component_id : str ,
125134 * ,
126135 client : AuthenticatedClient ,
127136 json_body : SubscriptionConfig ,
128137) -> Response [Union [Any , Error ]]:
129- """Subscribe the HLS component to the tracks of peers or components
138+ """Subscribe component to the tracks of peers or components
130139
131140 Args:
132141 room_id (str):
142+ component_id (str):
133143 json_body (SubscriptionConfig): Subscription config
134144
135145 Raises:
@@ -142,6 +152,7 @@ async def asyncio_detailed(
142152
143153 kwargs = _get_kwargs (
144154 room_id = room_id ,
155+ component_id = component_id ,
145156 json_body = json_body ,
146157 )
147158
@@ -152,14 +163,16 @@ async def asyncio_detailed(
152163
153164async def asyncio (
154165 room_id : str ,
166+ component_id : str ,
155167 * ,
156168 client : AuthenticatedClient ,
157169 json_body : SubscriptionConfig ,
158170) -> Optional [Union [Any , Error ]]:
159- """Subscribe the HLS component to the tracks of peers or components
171+ """Subscribe component to the tracks of peers or components
160172
161173 Args:
162174 room_id (str):
175+ component_id (str):
163176 json_body (SubscriptionConfig): Subscription config
164177
165178 Raises:
@@ -173,6 +186,7 @@ async def asyncio(
173186 return (
174187 await asyncio_detailed (
175188 room_id = room_id ,
189+ component_id = component_id ,
176190 client = client ,
177191 json_body = json_body ,
178192 )
0 commit comments