Skip to content

Commit

Permalink
Move RTP timestamp members to Metadata objects
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyherre committed Sep 29, 2023
1 parent 09f618e commit 869a787
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ dictionary RTCEncodedVideoFrameMetadata {
octet payloadType;
sequence<unsigned long> contributingSources;
long long timestamp; // microseconds
unsigned long rtpTimestamp;
};
</pre>

Expand Down Expand Up @@ -383,6 +384,16 @@ dictionary RTCEncodedVideoFrameMetadata {
{{VideoFrame/timestamp}} for raw frames which correspond to this frame.
</p>
</dd>
<dt>
<dfn dict-member>rtpTimestamp</dfn> <span class=
"idlMemberType">unsigned long</span>
</dt>
<dd>
<p>
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.
</p>
</dd>
</dl>


Expand All @@ -393,7 +404,6 @@ dictionary RTCEncodedVideoFrameMetadata {
[Exposed=(Window,DedicatedWorker), Serializable]
interface RTCEncodedVideoFrame {
readonly attribute RTCEncodedVideoFrameType type;
readonly attribute unsigned long timestamp;
attribute ArrayBuffer data;
RTCEncodedVideoFrameMetadata getMetadata();
};
Expand All @@ -410,16 +420,6 @@ interface RTCEncodedVideoFrame {
sent or received.
</p>
</dd>

<dt>
<dfn attribute>timestamp</dfn> <span class="idlMemberType">unsigned long</span>
</dt>
<dd>
<p>
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.
</p>
</dd>
<dt>
<dfn attribute>data</dfn> <span class="idlMemberType">ArrayBuffer</span>
</dt>
Expand Down Expand Up @@ -474,6 +474,7 @@ dictionary RTCEncodedAudioFrameMetadata {
octet payloadType;
sequence&lt;unsigned long&gt; contributingSources;
short sequenceNumber;
unsigned long rtpTimestamp;
};
</pre>
### Members ### {#RTCEncodedAudioFrameMetadata-members}
Expand Down Expand Up @@ -517,29 +518,28 @@ dictionary RTCEncodedAudioFrameMetadata {
Comparing two sequence numbers requires serial number arithmetic described in [[RFC1982]].
</p>
</dd>
<dt>
<dfn dict-member>rtpTimestamp</dfn> <span class="idlMemberType">unsigned long</span>
</dt>
<dd>
<p>
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.
</p>
</dd>
</dl>

## <dfn interface>RTCEncodedAudioFrame</dfn> interface ## {#RTCEncodedAudioFrame-interface}
<pre class="idl">
[Exposed=(Window,DedicatedWorker), Serializable]
interface RTCEncodedAudioFrame {
readonly attribute unsigned long timestamp;
attribute ArrayBuffer data;
RTCEncodedAudioFrameMetadata getMetadata();
};
</pre>

### Members ### {#RTCEncodedAudioFrame-members}
<dl dfn-for="RTCEncodedAudioFrame" class="dictionary-members">
<dt>
<dfn attribute>timestamp</dfn> <span class="idlMemberType">unsigned long</span>
</dt>
<dd>
<p>
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.
</p>
</dd>
<dt>
<dfn attribute>data</dfn> <span class="idlMemberType">ArrayBuffer</span>
</dt>
Expand Down

0 comments on commit 869a787

Please sign in to comment.