You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"title": "RTP Header Extension for Absolute Capture Time",
55
+
"publisher": "IETF"
51
56
}
52
57
}
53
58
</pre>
@@ -134,6 +139,20 @@ The <dfn abstract-op>readEncodedData</dfn> algorithm is given a |rtcObject| as p
134
139
1. Let |frame| be the newly produced frame.
135
140
1. Set |frame|.`[[owner]]` to |rtcObject|.
136
141
1. Set |frame|.`[[counter]]` to |rtcObject|.`[[lastEnqueuedFrameCounter]]`.
142
+
1. If the frame has been produced by a {{RTCRtpReceiver}}:
143
+
1. If the relevant RTP packet contains the
144
+
[[RTP-EXT-CAPTURE-TIME|RTP Header Extension for Absolute Capture Time]], set |frame|.`[[captureTime]]` to the
145
+
[[RTP-EXT-CAPTURE-TIME#absolute-capture-timestamp|absolute capture timestamp]] field and set |frame|.`[[senderCaptureTimeOffset]]`
146
+
to the [[RTP-EXT-CAPTURE-TIME#estimated-capture-clock-offset|capture clock offset field]] if it is present.
147
+
1. Otherwise, if the relevant RTP packet does not contain the
148
+
[[RTP-EXT-CAPTURE-TIME|RTP Header Extension for Absolute Capture Time]] but a previous RTP packet did,
149
+
set |frame|.`[[captureTime]]` to the result of calculating the absolute capture timestamp according to
150
+
[[RTP-EXT-CAPTURE-TIME#timestamp-interpolation|timestamp interpolation]] and set |frame|.`[[senderCaptureTimeOffset]]`
151
+
to the most recent value that was present.
152
+
1. Otherwise, set |frame|.`[[captureTime]]` to undefined and set |frame|.`[[senderCaptureTimeOffset]]` to undefined.
153
+
1. If the frame has been produced by a {{RTCRtpSender}}, set |frame|.`[[captureTime]]` to the capture timestamp
154
+
using the methodology described in [[RTP-EXT-CAPTURE-TIME#absolute-capture-timestamp]] and set frame.`[[senderCaptureTimeOffset]]`
155
+
to undefined.
137
156
1. [=ReadableStream/Enqueue=] |frame| in |rtcObject|.`[[readable]]`.
138
157
139
158
The <dfn abstract-op>writeEncodedData</dfn> algorithm is given a |rtcObject| as parameter and a |frame| as input. It is defined by running the following steps:
@@ -293,6 +312,10 @@ The <dfn method for="SFrameTransform">setEncryptionKey(|key|, |keyID|)</dfn> met
293
312
294
313
# RTCRtpScriptTransform # {#scriptTransform}
295
314
315
+
In this section, the capture system refers to the system where media is sourced from and the sender system
316
+
refers to the system that is sending RTP and RTCP packets to the receiver system where {{RTCEncodedVideoFrameMetadata}} data
317
+
or {{RTCEncodedAudioFrameMetadata}} data is populated.
0 commit comments