Skip to content

Commit 303d24f

Browse files
committed
deep clone of data
1 parent 4f2c438 commit 303d24f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ interface RTCEncodedVideoFrame {
445445
When called, run the following steps:
446446

447447
1. Set this.`[[type]]` to |originalFrame|.`[[type]]`.
448-
1. Set this.`[[data]]` to |originalFrame|.`[[data]]`.
448+
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]]`.
449449
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()]]`.
450450

451451
</p>
@@ -663,7 +663,7 @@ interface RTCEncodedAudioFrame {
663663

664664
When called, run the following steps:
665665

666-
1. Set this.`[[data]]` to |originalFrame|.`[[data]]`.
666+
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]]`.
667667
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()]]`.
668668

669669
</p>

0 commit comments

Comments
 (0)