You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates a new {{RTCEncodedVideoFrame}} from the given |originalFrame| and |options|`[metadata]`. The newly created frame is completely independent of the
452
-
|originalFrame| with its `[[data]]` being a deep copy of |originalFrame|.`[[data]]`. The new frame's `[[metadata]]` is a deep copy of |originalFrame|.`[[metadata]]`, with
453
-
any fields replaced with deep copies of the fields present in |options|`[metadata]`.
451
+
Creates a new {{RTCEncodedVideoFrame}} from the given |originalFrame| and
452
+
|options|.`[metadata]`. The newly created frame is completely independent of
453
+
|originalFrame|, with its `[[data]]` being a deep copy of |originalFrame|.`[[data]]`.
454
+
The new frame's `[[metadata]]` is a deep copy of |originalFrame|.`[[metadata]]`, with
455
+
fields replaced with deep copies of the fields present in |options|.`[metadata]`.
454
456
455
457
When called, run the following steps:
456
458
457
459
1. Set this.`[[type]]` to |originalFrame|.`[[type]]`.
458
460
1. Let this.`[[data]]` be the result of [[CloneArrayBuffer]](|originalFrame|.`[[data]]`, 0, |originalFrame|.`[[data]]`.`[[ArrayBufferByteLength]]`).
459
461
1. Let `[[metadata]]` represent the metadata associated with this newly constructed frame.
460
462
1. For each {`[[key]]`,`[[value]]`} pair of |originalFrame|.`[[getMetadata()]]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
461
-
1. For each {`[[key]]`,`[[value]]`} pair of |options|`[metadata]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
463
+
1. For each {`[[key]]`,`[[value]]`} pair of |options|.`[metadata]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
Creates a new {{RTCEncodedAudioFrame}} from the given |originalFrame| and |options|`[metadata]`. The newly created frame is completely independent of the
680
-
|originalFrame| with its `[[data]]` being a deep copy of |originalFrame|.`[[data]]`. The new frame's `[[metadata]]` is a deep copy of |originalFrame|.`[[metadata]]`, with
681
-
any fields replaced with deep copies of the fields present in |options|`[metadata]`.
681
+
Creates a new {{RTCEncodedAudioFrame}} from the given |originalFrame| and
682
+
|options|.`[metadata]`. The newly created frame is completely independent of
683
+
|originalFrame|, with its `[[data]]` being a deep copy of |originalFrame|.`[[data]]`.
684
+
The new frame's `[[metadata]]` is a deep copy of |originalFrame|.`[[metadata]]`, with
685
+
fields replaced with deep copies of the fields present in |options|.`[metadata]`.
682
686
683
687
When called, run the following steps:
684
688
685
689
1. Let this.`[[data]]` be the result of [[CloneArrayBuffer]](|originalFrame|.`[[data]]`, 0, |originalFrame|.`[[data]]`.`[[ArrayBufferByteLength]]`).
686
690
1. Let `[[metadata]]` represent the metadata associated with this newly constructed frame.
687
691
1. For each {`[[key]]`,`[[value]]`} pair of |originalFrame|.`[[getMetadata()]]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
688
-
1. For each {`[[key]]`,`[[value]]`} pair of |options|`[metadata]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
692
+
1. For each {`[[key]]`,`[[value]]`} pair of |options|.`[metadata]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
0 commit comments