Skip to content

Commit

Permalink
add introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
palak8669 committed Apr 19, 2024
1 parent ae0c342 commit f229c33
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ interface RTCEncodedVideoFrame {
</dt>
<dd>
<p>
Creates a new {{RTCEncodedVideoFrame}} from the given |originalFrame| and sets the internal metadata to |options|`[metadata]`.
Creates a new {{RTCEncodedVideoFrame}} from the given |originalFrame| and |options|`[metadata]`. The newly created frame is completely independent of the
|originalFrame| with its `[[data]]` being a deep copy of |originalFrame|.`[[data]]`. The new frame's `[[metadata]]` is a deep copy of |originalFrame|.`[[metadata]]`, with
any fields replaced with deep copies of the fields present in |options|`[metadata]`.

When called, run the following steps:

Expand Down Expand Up @@ -674,8 +676,10 @@ interface RTCEncodedAudioFrame {
</dt>
<dd>
<p>
Creates a new {{RTCEncodedAudioFrame}} from the given |originalFrame| and sets the internal metadata to |options|`[metadata]`.

Creates a new {{RTCEncodedAudioFrame}} from the given |originalFrame| and |options|`[metadata]`. The newly created frame is completely independent of the
|originalFrame| with its `[[data]]` being a deep copy of |originalFrame|.`[[data]]`. The new frame's `[[metadata]]` is a deep copy of |originalFrame|.`[[metadata]]`, with
any fields replaced with deep copies of the fields present in |options|`[metadata]`.

When called, run the following steps:

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

0 comments on commit f229c33

Please sign in to comment.