Skip to content

Commit 18c1b3e

Browse files
committed
nits
1 parent f229c33 commit 18c1b3e

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

index.bs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -448,17 +448,19 @@ interface RTCEncodedVideoFrame {
448448
</dt>
449449
<dd>
450450
<p>
451-
Creates a new {{RTCEncodedVideoFrame}} from the given |originalFrame| and |options|`[metadata]`. The newly created frame is completely independent of the
452-
|originalFrame| with its `[[data]]` being a deep copy of |originalFrame|.`[[data]]`. The new frame's `[[metadata]]` is a deep copy of |originalFrame|.`[[metadata]]`, with
453-
any fields replaced with deep copies of the fields present in |options|`[metadata]`.
451+
Creates a new {{RTCEncodedVideoFrame}} from the given |originalFrame| and
452+
|options|.`[metadata]`. The newly created frame is completely independent of
453+
|originalFrame|, with its `[[data]]` being a deep copy of |originalFrame|.`[[data]]`.
454+
The new frame's `[[metadata]]` is a deep copy of |originalFrame|.`[[metadata]]`, with
455+
fields replaced with deep copies of the fields present in |options|.`[metadata]`.
454456

455457
When called, run the following steps:
456458

457459
1. Set this.`[[type]]` to |originalFrame|.`[[type]]`.
458460
1. Let this.`[[data]]` be the result of [[CloneArrayBuffer]](|originalFrame|.`[[data]]`, 0, |originalFrame|.`[[data]]`.`[[ArrayBufferByteLength]]`).
459461
1. Let `[[metadata]]` represent the metadata associated with this newly constructed frame.
460462
1. For each {`[[key]]`,`[[value]]`} pair of |originalFrame|.`[[getMetadata()]]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
461-
1. For each {`[[key]]`,`[[value]]`} pair of |options|`[metadata]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
463+
1. For each {`[[key]]`,`[[value]]`} pair of |options|.`[metadata]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
462464
<p class="note">This does a "deep-copy" here.</p>
463465

464466
</p>
@@ -676,16 +678,18 @@ interface RTCEncodedAudioFrame {
676678
</dt>
677679
<dd>
678680
<p>
679-
Creates a new {{RTCEncodedAudioFrame}} from the given |originalFrame| and |options|`[metadata]`. The newly created frame is completely independent of the
680-
|originalFrame| with its `[[data]]` being a deep copy of |originalFrame|.`[[data]]`. The new frame's `[[metadata]]` is a deep copy of |originalFrame|.`[[metadata]]`, with
681-
any fields replaced with deep copies of the fields present in |options|`[metadata]`.
681+
Creates a new {{RTCEncodedAudioFrame}} from the given |originalFrame| and
682+
|options|.`[metadata]`. The newly created frame is completely independent of
683+
|originalFrame|, with its `[[data]]` being a deep copy of |originalFrame|.`[[data]]`.
684+
The new frame's `[[metadata]]` is a deep copy of |originalFrame|.`[[metadata]]`, with
685+
fields replaced with deep copies of the fields present in |options|.`[metadata]`.
682686

683687
When called, run the following steps:
684688

685689
1. Let this.`[[data]]` be the result of [[CloneArrayBuffer]](|originalFrame|.`[[data]]`, 0, |originalFrame|.`[[data]]`.`[[ArrayBufferByteLength]]`).
686690
1. Let `[[metadata]]` represent the metadata associated with this newly constructed frame.
687691
1. For each {`[[key]]`,`[[value]]`} pair of |originalFrame|.`[[getMetadata()]]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
688-
1. For each {`[[key]]`,`[[value]]`} pair of |options|`[metadata]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
692+
1. For each {`[[key]]`,`[[value]]`} pair of |options|.`[metadata]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
689693
<p class="note">This does a "deep-copy" here.</p>
690694

691695
</p>

0 commit comments

Comments
 (0)