Skip to content

Commit ae86de4

Browse files
committed
rename the Options
1 parent 417f896 commit ae86de4

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
@@ -422,15 +422,15 @@ dictionary RTCEncodedVideoFrameMetadata {
422422

423423
## <dfn interface>RTCEncodedVideoFrame</dfn> interface ## {#RTCEncodedVideoFrame-interface}
424424
<pre class="idl">
425-
dictionary RTCEncodedVideoFrameMetadataOptions {
425+
dictionary RTCEncodedVideoFrameOptions {
426426
RTCEncodedVideoFrameMetadata metadata;
427427
};
428428

429429
// New interfaces to define encoded video and audio frames. Will eventually
430430
// re-use or extend the equivalent defined in WebCodecs.
431431
[Exposed=(Window,DedicatedWorker), Serializable]
432432
interface RTCEncodedVideoFrame {
433-
constructor(RTCEncodedVideoFrame originalFrame, optional RTCEncodedVideoFrameMetadataOptions options = {});
433+
constructor(RTCEncodedVideoFrame originalFrame, optional RTCEncodedVideoFrameOptions options = {});
434434
readonly attribute RTCEncodedVideoFrameType type;
435435
attribute ArrayBuffer data;
436436
RTCEncodedVideoFrameMetadata getMetadata();
@@ -450,7 +450,7 @@ interface RTCEncodedVideoFrame {
450450

451451
1. Set this.`[[type]]` to |originalFrame|.`[[type]]`.
452452
1. Let this.`[[data]]` be the result of <a href="https://tc39.es/ecma262/#sec-clonearraybuffer">CloneArrayBuffer</a>(|originalFrame|.`[[data]]`, 0, |originalFrame|.`[[data]]`.`[[ArrayBufferByteLength]]`).
453-
1. Let `[[metadata]]` be the internal slot that stores the metadata associated with this newly constructed frame.
453+
1. Let `[[metadata]]` represent the metadata associated with this newly constructed frame.
454454
1. For each {`[[key]]`,`[[value]]`} pair of |originalFrame|.`[[getMetadata()]]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
455455
1. For each {`[[key]]`,`[[value]]`} pair of |options|`[metadata]`, if the `[[value]]` exists, set `[[metadata]]`.`[[key]]` to `[[value]]`.
456456

@@ -650,13 +650,13 @@ dictionary RTCEncodedAudioFrameMetadata {
650650

651651
## <dfn interface>RTCEncodedAudioFrame</dfn> interface ## {#RTCEncodedAudioFrame-interface}
652652
<pre class="idl">
653-
dictionary RTCEncodedAudioFrameMetadataOptions {
653+
dictionary RTCEncodedAudioFrameOptions {
654654
RTCEncodedAudioFrameMetadata metadata;
655655
};
656656

657657
[Exposed=(Window,DedicatedWorker), Serializable]
658658
interface RTCEncodedAudioFrame {
659-
constructor(RTCEncodedAudioFrame originalFrame, optional RTCEncodedAudioFrameMetadataOptions options = {});
659+
constructor(RTCEncodedAudioFrame originalFrame, optional RTCEncodedAudioFrameOptions options = {});
660660
attribute ArrayBuffer data;
661661
RTCEncodedAudioFrameMetadata getMetadata();
662662
};
@@ -674,7 +674,7 @@ interface RTCEncodedAudioFrame {
674674
When called, run the following steps:
675675

676676
1. Let this.`[[data]]` be the result of <a href="https://tc39.es/ecma262/#sec-clonearraybuffer">CloneArrayBuffer</a>(|originalFrame|.`[[data]]`, 0, |originalFrame|.`[[data]]`.`[[ArrayBufferByteLength]]`).
677-
1. Let `[[metadata]]` be the internal slot that stores the metadata associated with this newly constructed frame.
677+
1. Let `[[metadata]]` represent the metadata associated with this newly constructed frame.
678678
1. For each {`[[key]]`,`[[value]]`} pair of |originalFrame|.`[[getMetadata()]]`, set `[[metadata]]`.`[[key]]` to `[[value]]`.
679679
1. For each {`[[key]]`,`[[value]]`} pair of |options|`[metadata]`, if the `[[value]]` exists, set `[[metadata]]`.`[[key]]` to `[[value]]`.
680680

0 commit comments

Comments
 (0)