From f661a218f90ef6ab3793ce9a45e7911db3bab03a Mon Sep 17 00:00:00 2001 From: Tony Herre Date: Mon, 24 Apr 2023 13:22:58 +0000 Subject: [PATCH 1/2] Update name to plain 'timestamp' --- index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index ac20df5..42ca7bf 100644 --- a/index.bs +++ b/index.bs @@ -331,7 +331,7 @@ dictionary RTCEncodedVideoFrameMetadata { unsigned long synchronizationSource; octet payloadType; sequence<unsigned long> contributingSources; - long long presentationTimestamp; // microseconds + long long timestamp; // microseconds }; @@ -367,7 +367,7 @@ dictionary RTCEncodedVideoFrameMetadata {

- presentationTimestamp of type timestamp of type long long
From 733b90691ca526e02c94def6e163ba4625516240 Mon Sep 17 00:00:00 2001 From: Tony Herre Date: Mon, 24 Apr 2023 13:27:28 +0000 Subject: [PATCH 2/2] Move Encoded frame types timestamp into Metadata --- index.bs | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/index.bs b/index.bs index 42ca7bf..fb21787 100644 --- a/index.bs +++ b/index.bs @@ -332,6 +332,7 @@ dictionary RTCEncodedVideoFrameMetadata { octet payloadType; sequence<unsigned long> contributingSources; long long timestamp; // microseconds + long long rtpTimestamp; }; @@ -376,6 +377,16 @@ dictionary RTCEncodedVideoFrameMetadata { {{VideoFrame/timestamp}} for raw frames which correspond to this frame.

+
+ rtpTimestamp of type unsigned long +
+
+

+ The RTP timestamp identifier is an unsigned integer value per [RFC3550] that + reflects the sampling instant of the first octet in the RTP data packet. +

+
@@ -386,7 +397,6 @@ dictionary RTCEncodedVideoFrameMetadata { [Exposed=(Window,DedicatedWorker)] interface RTCEncodedVideoFrame { readonly attribute RTCEncodedVideoFrameType type; - readonly attribute unsigned long timestamp; attribute ArrayBuffer data; RTCEncodedVideoFrameMetadata getMetadata(); }; @@ -405,16 +415,6 @@ interface RTCEncodedVideoFrame { sent or received.

- -
- timestamp of type unsigned long -
-
-

- The RTP timestamp identifier is an unsigned integer value per [[RFC3550]] - that reflects the sampling instant of the first octet in the RTP data packet. -

-
data of type ArrayBuffer
@@ -446,6 +446,7 @@ dictionary RTCEncodedAudioFrameMetadata { octet payloadType; sequence<unsigned long> contributingSources; short sequenceNumber; + unsigned long rtpTimestamp; }; ### Members ### {#RTCEncodedAudioFrameMetadata-members} @@ -491,13 +492,21 @@ dictionary RTCEncodedAudioFrameMetadata { Comparing two sequence numbers requires serial number arithmetic described in [[RFC1982]].

+
+ rtpTimestamp of type unsigned long +
+
+

+ The RTP timestamp identifier is an unsigned integer value per [[RFC3550]] + that reflects the sampling instant of the first octet in the RTP data packet. +

+
## RTCEncodedAudioFrame interface ## {#RTCEncodedAudioFrame-interface}
 [Exposed=(Window,DedicatedWorker)]
 interface RTCEncodedAudioFrame {
-    readonly attribute unsigned long timestamp;
     attribute ArrayBuffer data;
     RTCEncodedAudioFrameMetadata getMetadata();
 };
@@ -507,15 +516,6 @@ interface RTCEncodedAudioFrame {
 
-
- timestamp of type unsigned long -
-
-

- The RTP timestamp identifier is an unsigned integer value per [[RFC3550]] - that reflects the sampling instant of the first octet in the RTP data packet. -

-
data of type ArrayBuffer