Skip to content

Commit 2b5ea9a

Browse files
renandincerthird774
andcommitted
Update src/content/docs/calls/simulcast.mdx
Co-authored-by: Kevin Kipp <[email protected]>
1 parent 3cf3897 commit 2b5ea9a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/content/docs/realtime/simulcast.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ a=rid:h send
6565
a=rid:q send
6666
```
6767

68+
You can include these by specifying `sendEncodings` when creating the transceiver:
69+
70+
```js
71+
const transceiver = peerConnection.addTransceiver(track, {
72+
direction: "sendonly",
73+
sendEncodings: [
74+
{ scaleResolutionDownBy: 1, rid: "a" },
75+
{ scaleResolutionDownBy: 2, rid: "b" },
76+
{ scaleResolutionDownBy: 4, rid: "c" }
77+
]
78+
});
6879
## Example
6980

7081
Here's an example of how to use simulcast with Cloudflare Calls:

0 commit comments

Comments
 (0)