@@ -358,6 +358,7 @@ dictionary RTCEncodedVideoFrameMetadata {
358
358
sequence<unsigned long> contributingSources;
359
359
long long timestamp; // microseconds
360
360
unsigned long rtpTimestamp;
361
+ DOMHighResTimeStamp receiveTime;
361
362
DOMString mimeType;
362
363
};
363
364
</pre>
@@ -371,7 +372,7 @@ dictionary RTCEncodedVideoFrameMetadata {
371
372
<dd>
372
373
<p>
373
374
An identifier for the encoded frame, monotonically increasing in decode order. Its lower
374
- 16 bits match the frame_number of the AV1 Dependency Descriptor Header Extension defined in Appendix A of [[? AV1-RTP-SPEC]] , if present.
375
+ 16 bits match the frame_number of the AV1 Dependency Descriptor Header Extension defined in Appendix A of [[AV1-RTP-SPEC]] , if present.
375
376
Only present for received frames if the Dependency Descriptor Header Extension is present.
376
377
</p>
377
378
</dd>
@@ -381,7 +382,7 @@ dictionary RTCEncodedVideoFrameMetadata {
381
382
<dd>
382
383
<p>
383
384
List of frameIds of frames this frame references.
384
- Only present for received frames if the AV1 Dependency Descriptor Header Extension defined in Appendix A of [[? AV1-RTP-SPEC]] is present.
385
+ Only present for received frames if the AV1 Dependency Descriptor Header Extension defined in Appendix A of [[AV1-RTP-SPEC]] is present.
385
386
</p>
386
387
</dd>
387
388
<dt>
@@ -431,6 +432,17 @@ dictionary RTCEncodedVideoFrameMetadata {
431
432
that reflects the sampling instant of the first octet in the RTP data packet.
432
433
</p>
433
434
</dd>
435
+ <dt>
436
+ <dfn dict-member>receiveTime</dfn> <span class=
437
+ "idlMemberType"> DOMHighResTimeStamp</span>
438
+ </dt>
439
+ <dd>
440
+ <p>
441
+ For frames coming from an RTCRtpReceiver, represents the timestamp
442
+ of the last received packet used to produce this video frame. This
443
+ timestamp is relative to {{Performance}} .{{Performance/timeOrigin}} .
444
+ </p>
445
+ </dd>
434
446
<dt>
435
447
<dfn dict-member>mimeType</dfn> <span class="idlMemberType"> DOMString</span>
436
448
</dt>
@@ -460,7 +472,7 @@ interface RTCEncodedVideoFrame {
460
472
};
461
473
</pre>
462
474
463
- ### Constructor ### {#RTCEncodedVideoFrame-members }
475
+ ### Constructor ### {#RTCEncodedVideoFrame-constructor }
464
476
<dl dfn-for="RTCEncodedVideoFrame" class="dictionary-members">
465
477
<dt>
466
478
<dfn for="RTCEncodedVideoFrame" method>constructor()</dfn>
@@ -506,11 +518,6 @@ interface RTCEncodedVideoFrame {
506
518
{{RTCEncodedVideoFrameMetadata/mimeType}} .
507
519
For <a href="https://w3c.github.io/webrtc-svc/">SVC</a> , each spatial layer
508
520
is transformed separately.
509
- <p class="note">
510
- Since packetizers may drop certain elements, e.g. AV1 temporal delimiter OBUs,
511
- the input to an receive-side transform may be different from the output of
512
- a send-side transform.
513
- </p>
514
521
The following table gives a number of examples:
515
522
</p>
516
523
<table class="simple">
@@ -565,6 +572,11 @@ interface RTCEncodedVideoFrame {
565
572
</tr>
566
573
</tbody>
567
574
</table>
575
+ <p class="note">
576
+ Since packetizers may drop certain elements, e.g. AV1 temporal delimiter OBUs,
577
+ the input to an receive-side transform may be different from the output of
578
+ a send-side transform.
579
+ </p>
568
580
</dd>
569
581
</dl>
570
582
@@ -611,6 +623,7 @@ dictionary RTCEncodedAudioFrameMetadata {
611
623
sequence<unsigned long> contributingSources;
612
624
short sequenceNumber;
613
625
unsigned long rtpTimestamp;
626
+ DOMHighResTimeStamp receiveTime;
614
627
DOMString mimeType;
615
628
};
616
629
</pre>
@@ -664,6 +677,16 @@ dictionary RTCEncodedAudioFrameMetadata {
664
677
that reflects the sampling instant of the first octet in the RTP data packet.
665
678
</p>
666
679
</dd>
680
+ <dt>
681
+ <dfn dict-member>receiveTime</dfn> <span class=
682
+ "idlMemberType"> DOMHighResTimeStamp</span>
683
+ </dt>
684
+ <dd>
685
+ <p>
686
+ For frames coming from an RTCRtpReceiver, represents the timestamp
687
+ of the last received packet used to produce this audio frame. This
688
+ timestamp is relative to {{Performance}} .{{Performance/timeOrigin}} .
689
+ </p>
667
690
<dt>
668
691
<dfn dict-member>mimeType</dfn> <span class="idlMemberType"> DOMString</span>
669
692
</dt>
@@ -689,7 +712,7 @@ interface RTCEncodedAudioFrame {
689
712
};
690
713
</pre>
691
714
692
- ### Constructor ### {#RTCEncodedAudioFrame-members }
715
+ ### Constructor ### {#RTCEncodedAudioFrame-constructor }
693
716
<dl dfn-for="RTCEncodedAudioFrame" class="dictionary-members">
694
717
<dt>
695
718
<dfn for="RTCEncodedAudioFrame" method>constructor()</dfn>
0 commit comments