Skip to content

Commit f63ec41

Browse files
authored
Editorial: Update WebRTC endpoint pair example
Closes #1317.
1 parent 53f7c7d commit f63ec41

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

index.bs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7464,14 +7464,13 @@ web developer code insert [=transform streams=] into the middle of them.
74647464

74657465
<xmp highlight="js">
74667466
const { readable, writable } = createEndpointPair();
7467-
readable.pipeThrough(new TransformStream(...)).pipeTo(writable);
7467+
await readable.pipeThrough(new TransformStream(...)).pipeTo(writable);
74687468
</xmp>
74697469
</div>
74707470

7471-
<p class="example" id="example-endpoint-pair-webrtc"><cite>WebRTC Insertable Media using
7472-
Streams</cite> is an example of this technique, with its `sender.createEncodedStreams()` and
7473-
`receiver.createEncodedStreams()` methods.
7474-
<!-- TODO cite it and cross-link to it https://github.com/tobie/specref/issues/620 -->
7471+
<p class="example" id="example-endpoint-pair-webrtc"><cite>WebRTC Encoded Transform</cite>
7472+
is an example of this technique, with its {{RTCRtpScriptTransformer}} interface which has
7473+
both `readable` and `writable` attributes.
74757474

74767475
Despite such endpoint pairs obeying the `readable`/`writable` property contract, it never makes
74777476
sense to pass them to {{ReadableStream/pipeThrough()}}.

0 commit comments

Comments
 (0)