Skip to content

Commit abb7ee2

Browse files
Merge pull request #46 from w3c/editorial-fixes
Fix a few editorial aspects
2 parents a7989f5 + 9757b3c commit abb7ee2

File tree

2 files changed

+89
-66
lines changed

2 files changed

+89
-66
lines changed

index.bs

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,14 @@ Shortname: webrtc-media-streams
44
Level: None
55
Status: ED
66
Group: webrtc
7-
Repository: w3c/webrtc-insertable-streams/
7+
Repository: w3c/webrtc-insertable-streams
88
URL: https://w3c.github.io/webrtc-insertable-streams/
99
Editor: Harald Alvestrand, Google https://google.com, [email protected]
1010
Editor: Guido Urdaneta, Google https://google.com, [email protected]
1111
Abstract: This API defines an API surface for manipulating the bits on
12-
Abstract: MediaStreamTracks being sent via an RTCPeerConnection.
12+
Abstract: {{MediaStreamTrack}}s being sent via an {{RTCPeerConnection}}.
1313
Markup Shorthands: css no, markdown yes
1414
</pre>
15-
<pre class='anchors'>
16-
spec: WEBRTC; urlPrefix: https://w3c.github.io/webrtc-pc/
17-
type: interface
18-
text: RTCPeerConnection; url: #dom-rtcpeerconnection
19-
type: dictionary
20-
text: RTCConfiguration; url: #dom-rtcconfiguration
21-
spec: WEB-CODECS; urlPrefix: https://github.com/WICG/web-codecs/
22-
type: interface
23-
text: AudioEncoder; url: #dom-audioencoder
24-
type: interface
25-
text: AudioDecoder; url: #dom-audiodecoder
26-
type: interface
27-
text: VideoEncoder; url: #dom-videoencoder
28-
type: interface
29-
text: VideoDecoder; url: #dom-videodecoder
30-
</pre>
3115
<pre class=biblio>
3216
{
3317
"WEB-CODECS": {
@@ -151,27 +135,27 @@ argument, ensure that the codec is disabled and produces no output.
151135
### Stream creation ### {#stream-creation}
152136

153137
Let the {{RTCRtpSender}} or {{RTCRtpReceiver}} have an internal slot,
154-
[[\Streams]], initialized to null.
138+
`[[Streams]]`, initialized to null.
155139

156140
When {{RTCRtpSender/createEncodedStreams}}() is
157141
called, run the following steps:
158142

159143
* If the {{RTCPeerConnection}}'s configuration does not have {{RTCConfiguration/encodedInsertableStreams}} set to "true", throw an {{InvalidStateError}} and abort these steps.
160144
* If the data source does not permit access, throw an {{InvalidAccessError}} and abort these steps.
161-
* If [[\Streams]] is not null, throw an {{InvalidStateError}}.
162-
* Create an {{RTCInsertableStreams}} object 's'.
163-
* Set s.readable to a ReadableStream representing the encoded data source.
164-
* Set s.writable to a WritableStream representing the encoded data sink.
145+
* If `[[Streams]]` is not null, throw an {{InvalidStateError}}.
146+
* Create an {{RTCInsertableStreams}} object |s|.
147+
* Set |s|.{{RTCInsertableStreams/readable}} to a {{ReadableStream}} representing the encoded data source.
148+
* Set |s|.{{RTCInsertableStreams/writable}} to a {{WritableStream}} representing the encoded data sink.
165149
* Enable the encoded data source.
166-
* Store 's' in the internal slot [[\Streams]].
167-
* Return 's'
150+
* Store |s| in the internal slot `[[Streams]]`.
151+
* Return |s|
168152

169153
### Stream processing ### {#stream-processing}
170154

171155
When a frame is produced from the encoded data source, place it on the
172-
[[\Streams]].readableStream'.
156+
`[[Streams]]`.{{RTCInsertableStreams/readable}}.
173157

174-
When a frame appears on the [[\Streams]].writable, do the following:
158+
When a frame appears on the `[[Streams]]`.{{RTCInsertableStreams/writable}}, do the following:
175159
* Check that the frame is a a valid frame that has been created by the encoded data source; if it is not, discard it. A processor cannot create frames, or move frames between streams.
176160
* Check that the frame's {{RTCEncodedVideoFrame/timestamp}} is equal to or larger than any previously received frame. A processor cannot reorder frames, although it may delay them or drop them.
177161
* Process the frame as if it came directly from the encoded data source.
@@ -191,6 +175,6 @@ otherwise unavailable, which allows some fingerprinting surface.
191175

192176
# Examples # {#examples}
193177

194-
See the explainer document.
178+
See the [explainer document](https://github.com/w3c/webrtc-insertable-streams/blob/master/explainer.md#code-examples).
195179

196180

0 commit comments

Comments
 (0)