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/calls/static/calls-api-2024-05-21.yaml
+41-33Lines changed: 41 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
openapi: 3.0.0
2
2
info:
3
3
title: Cloudflare Calls API
4
-
version: "1.1"
4
+
version: "1.0"
5
5
externalDocs:
6
6
description: Find out more about Cloudflare Calls
7
7
url: https://developers.cloudflare.com/calls/
@@ -135,33 +135,16 @@ paths:
135
135
sessionId: 2a45361d5fd7cc14eface0587c276c94
136
136
trackName: generated-audio
137
137
kind: "audio"
138
-
simulcast_track:
139
-
description: Share a track with simulcast configuration
138
+
remote_track_with_simulcast:
139
+
description: Pull a remote track with simulcast preferences
140
140
value:
141
-
sessionDescription:
142
-
sdp: |
143
-
v=0
144
-
o=- 0 0 IN IP4 127.0.0.1
145
-
s=-
146
-
c=IN IP4 127.0.0.1
147
-
t=0 0
148
-
m=audio 4000 RTP/AVP 111
149
-
a=rtpmap:111 OPUS/48000/2
150
-
m=video 4002 RTP/AVP 96
151
-
a=rtpmap:96 VP8/90000
152
-
a=simulcast:send f;h;q
153
-
a=rid:f send
154
-
a=rid:h send
155
-
a=rid:q send
156
-
...
157
-
type: offer
158
141
tracks:
159
-
- location: local
142
+
- location: remote
143
+
sessionId: 2a45361d5fd7cc14eface0587c276c94
160
144
trackName: simulcast-video-track
161
-
mid: "1"
162
145
simulcast:
163
146
preferredRid: "h"
164
-
preferredRidNotAvailable: "leastbandwidth"
147
+
fallbackStrategy: "leastBandwidth"
165
148
security:
166
149
- secret: []
167
150
parameters:
@@ -229,6 +212,31 @@ paths:
229
212
a=rtpmap:96 VP8/90000
230
213
...
231
214
type: offer
215
+
remote_tracks_with_simulcast:
216
+
value:
217
+
requiresImmediateRenegotiation: true
218
+
tracks:
219
+
- sessionId: 2a45361d5fd7cc14eface0587c276c94
220
+
trackName: simulcast-video-track
221
+
mid: "5"
222
+
simulcast:
223
+
preferredRid: "h"
224
+
fallbackStrategy: "leastBandwidth"
225
+
sessionDescription:
226
+
sdp: |
227
+
v=0
228
+
o=- 0 0 IN IP4 127.0.0.1
229
+
s=-
230
+
c=IN IP4 127.0.0.1
231
+
t=0 0
232
+
m=video 4002 RTP/AVP 96
233
+
a=rtpmap:96 VP8/90000
234
+
a=simulcast:recv f;h;q
235
+
a=rid:f recv
236
+
a=rid:h recv
237
+
a=rid:q recv
238
+
...
239
+
type: offer
232
240
/apps/{appId}/sessions/{sessionId}/renegotiate:
233
241
put:
234
242
tags:
@@ -351,8 +359,8 @@ paths:
351
359
requiresImmediateRenegotiation: false
352
360
tracks:
353
361
- mid: "7"
354
-
/apps/{appId}/sessions/{sessionId}/tracks/change:
355
-
post:
362
+
/apps/{appId}/sessions/{sessionId}/tracks/update:
363
+
put:
356
364
tags:
357
365
- Change tracks
358
366
summary: Change tracks by reusing existing transceivers
@@ -382,7 +390,7 @@ paths:
382
390
mid: "8"
383
391
simulcast:
384
392
preferredRid: "h"
385
-
preferredRidNotAvailable: "leastbandwidth"
393
+
fallbackStrategy: "leastBandwidth"
386
394
security:
387
395
- secret: []
388
396
parameters:
@@ -409,7 +417,7 @@ paths:
409
417
content:
410
418
application/json:
411
419
schema:
412
-
$ref: "#/components/schemas/ChangeTracksResponse"
420
+
$ref: "#/components/schemas/UpdateTracksResponse"
413
421
examples:
414
422
success:
415
423
value:
@@ -510,14 +518,14 @@ components:
510
518
preferredRid:
511
519
type: string
512
520
description: Preferred RID (Resolution ID) for simulcast streams
513
-
preferredRidNotAvailable:
521
+
fallbackStrategy:
514
522
type: string
515
523
enum:
516
-
- leastbandwidth
524
+
- auto
525
+
- leastBandwidth
517
526
- none
518
-
- error
519
-
default: leastbandwidth
520
-
description: Fallback strategy when preferred RID is not available anymore from the remote peer
527
+
default: auto
528
+
description: General fallback strategy when any constraint (like preferredRid, minWidth, maxBandwidth, etc.) cannot be met. 'auto' will select the best quality possible within constraints.
521
529
CloseTrackObject:
522
530
type: object
523
531
properties:
@@ -660,7 +668,7 @@ components:
660
668
description: Map of track IDs to track objects for changing tracks
0 commit comments