Skip to content

Commit 61bf6ef

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 61bf6ef

File tree

3 files changed

+25
-379
lines changed

3 files changed

+25
-379
lines changed

index.bs

+25
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,18 @@ 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+
Only exists for incoming video frames.
445+
</p>
446+
</dd>
434447
<dt>
435448
<dfn dict-member>mimeType</dfn> <span class="idlMemberType">DOMString</span>
436449
</dt>
@@ -614,6 +627,7 @@ dictionary RTCEncodedAudioFrameMetadata {
614627
sequence&lt;unsigned long&gt; contributingSources;
615628
short sequenceNumber;
616629
unsigned long rtpTimestamp;
630+
DOMHighResTimeStamp receiveTime;
617631
DOMString mimeType;
618632
};
619633
</pre>
@@ -667,6 +681,17 @@ dictionary RTCEncodedAudioFrameMetadata {
667681
that reflects the sampling instant of the first octet in the RTP data packet.
668682
</p>
669683
</dd>
684+
<dt>
685+
<dfn dict-member>receiveTime</dfn> <span class=
686+
"idlMemberType">DOMHighResTimeStamp</span>
687+
</dt>
688+
<dd>
689+
<p>
690+
For frames coming from an RTCRtpReceiver, represents the timestamp
691+
of the last received packet used to produce this audio frame. This
692+
timestamp is relative to {{Performance}}.{{Performance/timeOrigin}}.
693+
Only exists for incoming audio frames.
694+
</p>
670695
<dt>
671696
<dfn dict-member>mimeType</dfn> <span class="idlMemberType">DOMString</span>
672697
</dt>

timestamp_sp_questionnaire.md

-76
This file was deleted.

0 commit comments

Comments
 (0)