Skip to content

Commit

Permalink
Renumber examples
Browse files Browse the repository at this point in the history
  • Loading branch information
aboba committed Mar 26, 2024
1 parent c79ca64 commit 40e03e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions explainer-use-case-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ interface RtpReceiveStream {
}
```
## Proposed solutions
## Examples
## Example: Send with custom packetization (using WebCodecs)
## Example 1: Send with custom packetization (using WebCodecs)
```javascript
const videoTrack = await openVideoTrack(); // Custom
Expand Down Expand Up @@ -187,7 +187,7 @@ while (true) {
}
```
## Example: Receive with custom packetization (using WebCodecs)
## Example 2: Receive with custom packetization (using WebCodecs)
```javascript
const [pc, videoRtpReceiver] = await setupPeerConnectionWithRtpReceiver(); // Custom
const videoRtpReceiveStream = await videoRtpReceiver.replaceReceiveStreams()[0]; // Custom
Expand All @@ -207,7 +207,7 @@ videoRtpReceiveStream.onrtpreceived = () => {
};
```
## Example: Custom bitrate allocation
## Example 3: Custom bitrate allocation
```javascript
const [pc, rtpTransport] = await setupPeerConnectionWithRtpSender();
setInterval(() => {
Expand Down

0 comments on commit 40e03e5

Please sign in to comment.