From f229c33a6929d74338e11ce85197edda3436950f Mon Sep 17 00:00:00 2001 From: Palak Agarwal Date: Fri, 19 Apr 2024 12:22:10 +0200 Subject: [PATCH] add introduction --- index.bs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index 64ac37e..f80119f 100644 --- a/index.bs +++ b/index.bs @@ -448,7 +448,9 @@ interface RTCEncodedVideoFrame {

- 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: @@ -674,8 +676,10 @@ interface RTCEncodedAudioFrame {

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