From 0eff049e7ea57defc00044253f0945d956be14c8 Mon Sep 17 00:00:00 2001
From: Philipp Hancke
+ This frame contains no data.
+
+ This frame can be decoded without reference to any other frames.
+
+ This frame references another frame and can not be decoded without that frame.
+
+ The synchronization source (ssrc) identifier is an unsigned integer value per [[RFC3550]]
+ used to identify the stream of RTP packets that the encoded frame object is describing.
+
+ The payload type is an unsigned integer value in the range from 0 to 127 per [[RFC3550]]
+ that is used to describe the format of the RTP payload.
+
+ The list of contribution sources (csrc list) as defined in [[RFC3550]].
+
+ 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.
+
+ The encoded frame data.
+
// New enum for video frame types. Will eventually re-use the equivalent defined
// by WebCodecs.
@@ -272,7 +273,51 @@ enum RTCEncodedVideoFrameType {
"key",
"delta",
};
-
+
+
+
+
+## RTCEncodedVideoFrameMetadata dictionary ## {#RTCEncodedVideoFrameMetadata}
+
+
+
+
+ Enum value Description
+
+
+
+ empty
+
+
+
+
+
+
+ key
+
+
+
+
+
+
+
+ delta
+
+
+
+
dictionary RTCEncodedVideoFrameMetadata {
long long frameId;
sequence<long long> dependencies;
@@ -284,18 +329,88 @@ dictionary RTCEncodedVideoFrameMetadata {
octet payloadType;
sequence<unsigned long> contributingSources;
};
+
+### Members ### {#RTCEncodedVideoFrameMetadata-members}
+
+
+
+
+## RTCEncodedVideoFrame interface ## {#RTCEncodedVideoFrame-interface}
+
// New interfaces to define encoded video and audio frames. Will eventually
// re-use or extend the equivalent defined in WebCodecs.
[Exposed=(Window,DedicatedWorker)]
interface RTCEncodedVideoFrame {
readonly attribute RTCEncodedVideoFrameType type;
- readonly attribute unsigned long timestamp; // RTP timestamp.
+ readonly attribute unsigned long timestamp;
attribute ArrayBuffer data;
RTCEncodedVideoFrameMetadata getMetadata();
};
+### Members ### {#RTCEncodedVideoFrame-members}
+
+
+
+### Methods ### {#RTCEncodedVideoFrame-methods}
+
+
+
## RTCEncodedAudioFrameMetadata dictionary ## {#RTCEncodedAudioFrameMetadata}
dictionary RTCEncodedAudioFrameMetadata {
@@ -304,7 +419,7 @@ dictionary RTCEncodedAudioFrameMetadata {
sequence<unsigned long> contributingSources;
};
-### Dictionary {{RTCEncodedAudioFrameMetadata}} Members ### {#RTCEncodedAudioFrameMetadata-members}
+### Members ### {#RTCEncodedAudioFrameMetadata-members}
@@ -336,16 +451,53 @@ dictionary RTCEncodedAudioFrameMetadata {
[Exposed=(Window,DedicatedWorker)] interface RTCEncodedAudioFrame { - readonly attribute unsigned long timestamp; // RTP timestamp. + readonly attribute unsigned long timestamp; attribute ArrayBuffer data; RTCEncodedAudioFrameMetadata getMetadata(); }; ++ +### Members ### {#RTCEncodedAudioFrame-members} +
+ 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. +
++ The encoded frame data. +
+