You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: public/realtime/static/calls-api-2024-05-21.yaml
+40-32Lines changed: 40 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -140,33 +140,16 @@ paths:
140
140
sessionId: 2a45361d5fd7cc14eface0587c276c94
141
141
trackName: generated-audio
142
142
kind: "audio"
143
-
simulcast_track:
144
-
description: Share a track with simulcast configuration
143
+
remote_track_with_simulcast:
144
+
description: Pull a remote track with simulcast preferences
145
145
value:
146
-
sessionDescription:
147
-
sdp: |
148
-
v=0
149
-
o=- 0 0 IN IP4 127.0.0.1
150
-
s=-
151
-
c=IN IP4 127.0.0.1
152
-
t=0 0
153
-
m=audio 4000 RTP/AVP 111
154
-
a=rtpmap:111 OPUS/48000/2
155
-
m=video 4002 RTP/AVP 96
156
-
a=rtpmap:96 VP8/90000
157
-
a=simulcast:send f;h;q
158
-
a=rid:f send
159
-
a=rid:h send
160
-
a=rid:q send
161
-
...
162
-
type: offer
163
146
tracks:
164
-
- location: local
147
+
- location: remote
148
+
sessionId: 2a45361d5fd7cc14eface0587c276c94
165
149
trackName: simulcast-video-track
166
-
mid: "1"
167
150
simulcast:
168
151
preferredRid: "h"
169
-
preferredRidNotAvailable: "leastbandwidth"
152
+
fallbackStrategy: "leastBandwidth"
170
153
security:
171
154
- secret: []
172
155
parameters:
@@ -234,6 +217,31 @@ paths:
234
217
a=rtpmap:96 VP8/90000
235
218
...
236
219
type: offer
220
+
remote_tracks_with_simulcast:
221
+
value:
222
+
requiresImmediateRenegotiation: true
223
+
tracks:
224
+
- sessionId: 2a45361d5fd7cc14eface0587c276c94
225
+
trackName: simulcast-video-track
226
+
mid: "5"
227
+
simulcast:
228
+
preferredRid: "h"
229
+
fallbackStrategy: "leastBandwidth"
230
+
sessionDescription:
231
+
sdp: |
232
+
v=0
233
+
o=- 0 0 IN IP4 127.0.0.1
234
+
s=-
235
+
c=IN IP4 127.0.0.1
236
+
t=0 0
237
+
m=video 4002 RTP/AVP 96
238
+
a=rtpmap:96 VP8/90000
239
+
a=simulcast:recv f;h;q
240
+
a=rid:f recv
241
+
a=rid:h recv
242
+
a=rid:q recv
243
+
...
244
+
type: offer
237
245
/apps/{appId}/sessions/{sessionId}/renegotiate:
238
246
put:
239
247
tags:
@@ -356,8 +364,8 @@ paths:
356
364
requiresImmediateRenegotiation: false
357
365
tracks:
358
366
- mid: "7"
359
-
/apps/{appId}/sessions/{sessionId}/tracks/change:
360
-
post:
367
+
/apps/{appId}/sessions/{sessionId}/tracks/update:
368
+
put:
361
369
tags:
362
370
- Change tracks
363
371
summary: Change tracks by reusing existing transceivers
@@ -387,7 +395,7 @@ paths:
387
395
mid: "8"
388
396
simulcast:
389
397
preferredRid: "h"
390
-
preferredRidNotAvailable: "leastbandwidth"
398
+
fallbackStrategy: "leastBandwidth"
391
399
security:
392
400
- secret: []
393
401
parameters:
@@ -414,7 +422,7 @@ paths:
414
422
content:
415
423
application/json:
416
424
schema:
417
-
$ref: "#/components/schemas/ChangeTracksResponse"
425
+
$ref: "#/components/schemas/UpdateTracksResponse"
418
426
examples:
419
427
success:
420
428
value:
@@ -515,14 +523,14 @@ components:
515
523
preferredRid:
516
524
type: string
517
525
description: Preferred RID (Resolution ID) for simulcast streams
518
-
preferredRidNotAvailable:
526
+
fallbackStrategy:
519
527
type: string
520
528
enum:
521
-
- leastbandwidth
529
+
- auto
530
+
- leastBandwidth
522
531
- none
523
-
- error
524
-
default: leastbandwidth
525
-
description: Fallback strategy when preferred RID is not available anymore from the remote peer
532
+
default: auto
533
+
description: General fallback strategy when any constraint (like preferredRid, minWidth, maxBandwidth, etc.) cannot be met. 'auto' will select the best quality possible within constraints.
526
534
CloseTrackObject:
527
535
type: object
528
536
properties:
@@ -665,7 +673,7 @@ components:
665
673
description: Map of track IDs to track objects for changing tracks
0 commit comments