Skip to content

Commit f229c33

Browse files
committed
add introduction
1 parent ae0c342 commit f229c33

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

index.bs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,9 @@ interface RTCEncodedVideoFrame {
448448
</dt>
449449
<dd>
450450
<p>
451-
Creates a new {{RTCEncodedVideoFrame}} from the given |originalFrame| and sets the internal metadata to |options|`[metadata]`.
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]`.
452454

453455
When called, run the following steps:
454456

@@ -674,8 +676,10 @@ interface RTCEncodedAudioFrame {
674676
</dt>
675677
<dd>
676678
<p>
677-
Creates a new {{RTCEncodedAudioFrame}} from the given |originalFrame| and sets the internal metadata to |options|`[metadata]`.
678-
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]`.
682+
679683
When called, run the following steps:
680684

681685
1. Let this.`[[data]]` be the result of [[CloneArrayBuffer]](|originalFrame|.`[[data]]`, 0, |originalFrame|.`[[data]]`.`[[ArrayBufferByteLength]]`).

0 commit comments

Comments
 (0)