Skip to content

Commit 2aadcd3

Browse files
author
Guido Urdaneta
committed
Add receiveTime field to RTCEncodedVideoFrameMetadata and RTCEncodedAudioFrameMetadata
Drive-by: Fix bugs preventing proper translation of the spec.
1 parent 931ed0f commit 2aadcd3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

index.bs

+23
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ dictionary RTCEncodedVideoFrameMetadata {
358358
sequence<unsigned long> contributingSources;
359359
long long timestamp; // microseconds
360360
unsigned long rtpTimestamp;
361+
DOMHighResTimeStamp receiveTime;
361362
DOMString mimeType;
362363
};
363364
</pre>
@@ -431,6 +432,17 @@ dictionary RTCEncodedVideoFrameMetadata {
431432
that reflects the sampling instant of the first octet in the RTP data packet.
432433
</p>
433434
</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>
434446
<dt>
435447
<dfn dict-member>mimeType</dfn> <span class="idlMemberType">DOMString</span>
436448
</dt>
@@ -614,6 +626,7 @@ dictionary RTCEncodedAudioFrameMetadata {
614626
sequence&lt;unsigned long&gt; contributingSources;
615627
short sequenceNumber;
616628
unsigned long rtpTimestamp;
629+
DOMHighResTimeStamp receiveTime;
617630
DOMString mimeType;
618631
};
619632
</pre>
@@ -667,6 +680,16 @@ dictionary RTCEncodedAudioFrameMetadata {
667680
that reflects the sampling instant of the first octet in the RTP data packet.
668681
</p>
669682
</dd>
683+
<dt>
684+
<dfn dict-member>receiveTime</dfn> <span class=
685+
"idlMemberType">DOMHighResTimeStamp</span>
686+
</dt>
687+
<dd>
688+
<p>
689+
For frames coming from an RTCRtpReceiver, represents the timestamp
690+
of the last received packet used to produce this audio frame. This
691+
timestamp is relative to {{Performance}}.{{Performance/timeOrigin}}.
692+
</p>
670693
<dt>
671694
<dfn dict-member>mimeType</dfn> <span class="idlMemberType">DOMString</span>
672695
</dt>

0 commit comments

Comments
 (0)