From 303d24fcb34eeb39bc7137db85ce6d6c4b257edb Mon Sep 17 00:00:00 2001 From: Palak Agarwal Date: Wed, 17 Jan 2024 11:10:52 +0100 Subject: [PATCH] deep clone of data --- index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 1d32bcd..96482a7 100644 --- a/index.bs +++ b/index.bs @@ -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()]]`.

@@ -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()]]`.