Skip to content

Commit 4f2c438

Browse files
committed
Update
1 parent 03df57b commit 4f2c438

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ dictionary RTCEncodedVideoFrameMetadata {
426426
// re-use or extend the equivalent defined in WebCodecs.
427427
[Exposed=(Window,DedicatedWorker), Serializable]
428428
interface RTCEncodedVideoFrame {
429-
constructor(RTCEncodedVideoFrame originalFrame, RTCEncodedVideoFrameMetadata newMetadata);
429+
constructor(RTCEncodedVideoFrame originalFrame, optional RTCEncodedVideoFrameMetadata newMetadata);
430430
readonly attribute RTCEncodedVideoFrameType type;
431431
attribute ArrayBuffer data;
432432
RTCEncodedVideoFrameMetadata getMetadata();
@@ -440,13 +440,13 @@ interface RTCEncodedVideoFrame {
440440
</dt>
441441
<dd>
442442
<p>
443-
Create a new RTCEncodedVideoFrame from the given |originalFrame| and sets its metadata to |newMetadata|.
443+
Creates a new {{RTCEncodedVideoFrame}} from the given |originalFrame| and sets the internal metadata to |newMetadata|.
444444

445445
When called, run the following steps:
446446

447447
1. Set this.`[[type]]` to |originalFrame|.`[[type]]`.
448448
1. Set this.`[[data]]` to |originalFrame|.`[[data]]`.
449-
1. Set the internal representation of metadata to |newMetadata| such that this.`[[getMetadata()]]` returns |newMetadata|.
449+
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>
452452
</dd>
@@ -646,7 +646,7 @@ dictionary RTCEncodedAudioFrameMetadata {
646646
<pre class="idl">
647647
[Exposed=(Window,DedicatedWorker), Serializable]
648648
interface RTCEncodedAudioFrame {
649-
constructor(RTCEncodedAudioFrame originalFrame, RTCEncodedAudioFrameMetadata newMetadata);
649+
constructor(RTCEncodedAudioFrame originalFrame, optional RTCEncodedAudioFrameMetadata newMetadata);
650650
attribute ArrayBuffer data;
651651
RTCEncodedAudioFrameMetadata getMetadata();
652652
};
@@ -659,12 +659,12 @@ interface RTCEncodedAudioFrame {
659659
</dt>
660660
<dd>
661661
<p>
662-
Create a new RTCEncodedAudioFrame from the given |originalFrame| and sets its metadata to |newMetadata|.
662+
Creates a new {{RTCEncodedAudioFrame}} from the given |originalFrame| and sets the internal metadata to |newMetadata|.
663663

664664
When called, run the following steps:
665665

666666
1. Set this.`[[data]]` to |originalFrame|.`[[data]]`.
667-
1. Set the internal representation of metadata to |newMetadata| such that this.`[[getMetadata()]]` returns |newMetadata|.
667+
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>
670670
</dd>

0 commit comments

Comments
 (0)