@@ -571,8 +571,8 @@ interface RTCEncodedVideoFrame {
571
571
</dt>
572
572
<dd>
573
573
<p>
574
- The type attribute allows the application to determine when a key frame is being
575
- sent or received .
574
+ The type attribute allows the application to determine when a frame is a key frame or a delta frame.
575
+ On getting, |this|.` [[type]] ` MUST be returned .
576
576
</p>
577
577
</dd>
578
578
<dt>
@@ -585,6 +585,7 @@ interface RTCEncodedVideoFrame {
585
585
{{RTCEncodedFrameMetadata/mimeType}} .
586
586
For <a href="https://w3c.github.io/webrtc-svc/">SVC</a> , each spatial layer
587
587
is transformed separately.
588
+ On getting, |this|.`[[data]] ` MUST be returned. On setting, |this|.`[[data]] ` MUST be set to the new value.
588
589
</p>
589
590
<p class="note">
590
591
Since packetizers may drop certain elements, e.g. AV1 temporal delimiter OBUs,
@@ -667,14 +668,14 @@ interface RTCEncodedVideoFrame {
667
668
Their [=serialization steps=] , given |value|, |serialized|, and |forStorage|, are:
668
669
669
670
1. If |forStorage| is true, then throw a {{DataCloneError}} .
670
- 1. Set |serialized|.`[[type]] ` to the value of |value|.{{RTCEncodedVideoFrame/ type}} .
671
+ 1. Set |serialized|.`[[type]] ` to the value of |value|.` [[ type]] ` .
671
672
1. Set |serialized|.`[[metadata]] ` to an internal representation of |value|'s metadata.
672
673
1. Set |serialized|.`[[data]] ` to the [=sub-serialization=] of |value|.`[[data]] `.
673
674
674
675
675
676
Their [=deserialization steps=] , given |serialized|, |value| and |realm|, are:
676
677
677
- 1. Set |value|.{{RTCEncodedVideoFrame/ type}} to |serialized|.`[[type]] `.
678
+ 1. Set |value|.` [[ type]] ` to |serialized|.`[[type]] `.
678
679
1. Set |value|'s metadata to the platform object representation of |serialized|.`[[metadata]] `.
679
680
1. Set |value|.`[[data]] ` to the [=sub-deserialization=] of |serialized|.`[[data]] `.
680
681
@@ -783,6 +784,7 @@ interface RTCEncodedAudioFrame {
783
784
The encoded frame data. The format of the data depends on the audio codec that is
784
785
used to encode/decode the frame which can be determined by looking at the
785
786
{{RTCEncodedFrameMetadata/mimeType}} .
787
+ On getting, |this|.`[[data]] ` MUST be returned. On setting, |this|.`[[data]] ` MUST be set to the new value.
786
788
The following table gives a number of examples:
787
789
</p>
788
790
<table class="simple">
0 commit comments