Skip to content

Commit

Permalink
deep clone of data
Browse files Browse the repository at this point in the history
  • Loading branch information
palak8669 committed Jan 17, 2024
1 parent 4f2c438 commit 303d24f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ interface RTCEncodedVideoFrame {
When called, run the following steps:

1. Set this.`[[type]]` to |originalFrame|.`[[type]]`.
1. Set this.`[[data]]` to |originalFrame|.`[[data]]`.
1. Let this.`[[data]]` be a new ArrayBuffer object whose `[[ArrayBufferData]]` internal slot value is |originalFrame|.`[[data]]`.`[[ArrayBufferData]]`, and whose `[[ArrayBufferByteLength]]` internal slot value is |originalFrame|.`[[data]]`.`[[ArrayBufferByteLength]]`.
1. If |newMetadata| is not empty, set the internal representation of metadata to |newMetadata| such that {{RTCEncodedVideoFrame/getMetadata()}} returns |newMetadata|. Otherwise, set the internal representation of metadata to originalFrame.`[[getMetadata()]]`.

</p>
Expand Down Expand Up @@ -663,7 +663,7 @@ interface RTCEncodedAudioFrame {

When called, run the following steps:

1. Set this.`[[data]]` to |originalFrame|.`[[data]]`.
1. Let this.`[[data]]` be a new ArrayBuffer object whose `[[ArrayBufferData]]` internal slot value is |originalFrame|.`[[data]]`.`[[ArrayBufferData]]`, and whose `[[ArrayBufferByteLength]]` internal slot value is |originalFrame|.`[[data]]`.`[[ArrayBufferByteLength]]`.
1. If |newMetadata| is not empty, set the internal representation of metadata to |newMetadata| such that {{RTCEncodedAudioFrame/getMetadata()}} returns |newMetadata|. Otherwise, set the internal representation of metadata to originalFrame.`[[getMetadata()]]`.

</p>
Expand Down

0 comments on commit 303d24f

Please sign in to comment.