Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump RTCP BYE packet info.
-Get the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTCP Compound packet.
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty RTCP Compound -packet will be created.
-Add a new RtcpPacket at the end of this RTCP Compound packet.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump RTCP Compound packet info.
-Return the RtcpPacket entries in this RTCP Compound packet.
-import { packets } from 'rtp.js';
const { CompoundPacket, RtcpPacketType, SdesPacket } = packets;
const compoundPacket = new CompoundPacket(view);
for (const packet of compoundPacket.getPackets())
{
switch (packet.getPacketType())
{
case RtcpPacketType.SDES:
{
const sdesPacket = packet as SdesPacket;
console.log(sdesPacket.getChunks());
break;
}
// etc.
}
}
-
-
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Set the RtcpPacket entries in this RTCP Compound packet.
-DLRR Extended Report.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| BT=5 | reserved | block length |
-+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-| SSRC_1 (SSRC of first receiver) | sub-
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ block
-| last RR (LRR) | 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| delay since last RR (DLRR) |
-+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-| SSRC_2 (SSRC of second receiver) | sub-
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ block
-: ... : 2
-+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty DLRR Extended -Report will be created.
-Add sub-report.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump DLRR Extended Report info.
-Get the Extended Report type.
-Get sub-reports.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Set sub-reports.
-Duplicate RLE Extended Report.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| BT=2 | rsvd. | T | block length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| begin_seq | end_seq |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| chunk 1 | chunk 2 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-: ... :
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| chunk n-1 | chunk n |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty Duplicate RLE -Extended Report will be created.
-Add chunk.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump Duplicate RLE Extended Report info.
-Get chunks.
-Get the Extended Report type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Set chunks.
-ECN Summary Extended Report.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| BT=13 | reserved | block length = 5 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of Media Sender |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| ECT (0) Counter |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| ECT (1) Counter |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| ECN-CE Counter | not-ECT Counter |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| Lost Packets Counter | Duplication Counter |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty ECN Summary -Extended Report will be created.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump ECN Summary Extended Report info.
-Get the Extended Report type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTCP ECN packet (RTCP Transport Layer Feedback).
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|V=2|P| FMT=8 | PT=RTPFB=205 | length=7 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of packet sender |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of media source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| Extended Highest Sequence Number |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| ECT (0) Counter |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| ECT (1) Counter |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| ECN-CE Counter | not-ECT Counter |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| Lost Packets Counter | Duplication Counter |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump RTCP ECN packet info.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTCP Extended Jitter Reports packet.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-header |V=2|P| RC | PT=195 | length |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | inter-arrival jitter |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- : ... :
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty RTCP Extended -Jitter Reports packet will be created.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump RTCP Extended Jitter Reports packet info.
-Get the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).AbstractParent class of all XrPacket Extended Reports.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| BT | type-specific | block length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-: type-specific block contents :
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-AbstractcloneClone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Base Extended Report dump.
-AbstractgetGet the Extended Report type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
AbstractserializeApply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).AbstractRTCP Feedback packet.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|V=2|P| FMT | PT | length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of packet sender |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of media source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-: Feedback Control Information (FCI) :
-: :
-
-
-AbstractcloneClone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Base RTCP Feedback packet dump.
-AbstractgetGet the RTCP Feedback message type.
-Get the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
AbstractserializeApply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Generic Extended Report.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| BT=??? | type-specific | block length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| body |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-: ... :
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty generic -Extended Report will be created.
-OptionalreportType: numberIf view is not given, this parameter must be given.
Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump generic Extended Report info.
-Get the Extended Report type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTCP generic Feedback packet.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|V=2|P| FMT=??? | PT=205|206 | length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of packet sender |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of media source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-: Feedback Control Information (FCI) :
-: :
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty RTCP generic -Feedback packet will be created.
-OptionalpacketType: RTPFB | PSFBIf view is not given, this parameter must be given.
OptionalmessageType: RtpFeedbackMessageType | PsFeedbackMessageTypeIf view is not given, this parameter must be given.
Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump RTCP generic Feedback packet info.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTCP generic packet.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-header |V=2|P| SC | PT=??? | length |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-body | ... |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- : ... :
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty RTCP generic -packet will be created.
-OptionalpacketType: numberIf view is not given, this parameter must be given.
Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump RTCP generic packet info.
-Get the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Loss RLE Extended Report.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| BT=1 | rsvd. | T | block length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| begin_seq | end_seq |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| chunk 1 | chunk 2 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-: ... :
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| chunk n-1 | chunk n |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty Loss RLE -Extended Report will be created.
-Add chunk.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump Loss RLE Extended Report info.
-Get chunks.
-Get the Extended Report type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Set chunks.
-RTCP NACK packet (RTCP Transport Layer Feedback).
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|V=2|P| FMT=1 | PT=RTPFB=205 | length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of packet sender |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of media source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| PID | BLP |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-: ... :
-+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty RTCP NACK -packet will be created.
-Add NACK item value.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump RTCP NACK packet info.
-Get NACK items.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Set NACK items.
-AbstractParent class of all RTP and RTCP packets.
-AbstractcloneClone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Base RTCP packet dump.
-AbstractgetGet a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
AbstractserializeApply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTCP PLI packet (RTCP Payload Specific Feedback).
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|V=2|P| FMT=1 | PT=PSFB=206 | length=2 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of packet sender |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of media source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump RTCP PLI packet info.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Packet Receipt Times Extended Report.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| BT=3 | rsvd. | T | block length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| begin_seq | end_seq |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| Receipt time of packet begin_seq |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| Receipt time of packet (begin_seq + 1) mod 65536 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-: ... :
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| Receipt time of packet (end_seq - 1) mod 65536 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty Packet Receipt -Times Extended Report will be created.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump Packet Receipt Times Extended Report info.
-Get the Extended Report type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTCP Receiver Report packet.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-header |V=2|P| RC | PT=RR=201 | length |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | SSRC of packet sender |
- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-report | SSRC_1 (SSRC of first source) |
-block +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- 1 | fraction lost | cumulative number of packets lost |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | extended highest sequence number received |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | interarrival jitter |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | last SR (LSR) |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | delay since last SR (DLSR) |
- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-report | SSRC_2 (SSRC of second source) |
-block +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- 2 : ... :
- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
- | profile-specific extensions |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty RTCP Receiver -Report packet will be created.
-Add Reception Report.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump Receiver Report packet info.
-Get the RTCP packet type.
-Get Reception Reports.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Set Reception Reports.
-RTCP Reception Report.
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty RTCP Receiver -Report will be created.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump Reception Report info.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTCP RPSI packet (RTCP Payload Specific Feedback).
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|V=2|P| FMT=3 | PT=PSFB=206 | length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of packet sender |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of media source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| PB |0| Payload Type| Native RPSI bit string |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| defined per codec ... | Padding (0) |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty RTCP RPSI -packet will be created.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump RTCP RPSI packet info.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Receiver Reference Time Extended Report.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| BT=4 | reserved | block length = 2 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| NTP timestamp, most significant word |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| NTP timestamp, least significant word |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty Receiver -Reference Time Extended Report will be created.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump Receiver Reference Time Extended Report info.
-Get the Extended Report type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).AbstractRTCP packet. Parent class of all RTCP packets.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-header |V=2|P| SC | PT | length |
- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-
-
-AbstractcloneClone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Base RTCP packet dump.
-AbstractgetGet the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
AbstractserializeApply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTP packet.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|V=2|P|X| CC |M| PT | sequence number |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| timestamp |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| synchronization source (SSRC) identifier |
-+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-| contributing source (CSRC) identifiers |
-| .... |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| defined by profile | length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| header extension |
-| .... |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump RTP packet info.
-Read the value of the RtpExtensionType.ABS_SEND_TIME RTP -extension.
-Get RTP extension mapping (association of RTP extension types and their -numeric ids in this RTP packet).
-Read the value of the RtpExtensionType.MID RTP extension.
-Read the value of the RtpExtensionType.RTP_REPAIRED_STREAM_ID RTP -extension.
-Read the value of the RtpExtensionType.RTP_STREAM_ID RTP -extension.
-Read the value of the RtpExtensionType.SSRC_AUDIO_LEVEL RTP -extension.
-Read the value of the RtpExtensionType.TOFFSET RTP extension.
-Read the value of the RtpExtensionType.TRANSPORT_WIDE_SEQ_NUMBER -RTP extension.
-Read the value of the RtpExtensionType.VIDEO_ORIENTATION RTP -extension.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Set the value of the RtpExtensionType.ABS_SEND_TIME RTP -extension.
-OptionalabsSendTime: numberabsSendTime must be in "Absolute Send Time" format. See
-timeMsToAbsSendTime.Set RTP extension mapping (association of RTP extension types and their -numeric ids in this RTP packet).
-Set the value of the RtpExtensionType.MID RTP extension.
-Optionalmid: stringSet the value of the RtpExtensionType.RTP_REPAIRED_STREAM_ID RTP -extension.
-Optionalrrid: stringSet the value of the RtpExtensionType.RTP_STREAM_ID RTP -extension.
-Optionalrid: stringSet the value of the RtpExtensionType.SSRC_AUDIO_LEVEL RTP -extension.
-OptionalssrcAudioLevel: SsrcAudioLevelExtensionSet the value of the RtpExtensionType.TOFFSET RTP extension.
-Optionaloffset: numberSet the value of the RtpExtensionType.TRANSPORT_WIDE_SEQ_NUMBER -RTP extension.
-OptionalsequenceNumber: numberSet the value of the RtpExtensionType.VIDEO_ORIENTATION RTP -extension.
-OptionalvideoOrientation: VideoOrientationExtensionSDES Chunk.
-Add SDES Item.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump SDES Chunk info.
-Get SDES Items.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Set SDES Items.
-RTCP SDES packet.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-header |V=2|P| SC | PT=SDES=202 | length |
- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-chunk | SSRC/CSRC_1 |
- 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | SDES items |
- | ... |
- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-chunk | SSRC/CSRC_2 |
- 2 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | SDES items |
- | ... |
- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty RTCP SDES -packet will be created.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump Receiver Report packet info.
-Get the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTCP Sender Report packet.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-header |V=2|P| RC | PT=SR=200 | length |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | SSRC of sender |
- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-sender | NTP timestamp, most significant word |
-info +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | NTP timestamp, least significant word |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | RTP timestamp |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | sender's packet count |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | sender's octet count |
- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-report | SSRC_1 (SSRC of first source) |
-block +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- 1 | fraction lost | cumulative number of packets lost |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | extended highest sequence number received |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | interarrival jitter |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | last SR (LSR) |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | delay since last SR (DLSR) |
- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-report | SSRC_2 (SSRC of second source) |
-block +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- 2 : ... :
- +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
- | profile-specific extensions |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty RTCP Sender -Report packet will be created.
-Add Reception Report.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump Sender Report packet info.
-Get the RTCP packet type.
-Get Reception Reports.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Set Reception Reports.
-AbstractClass holding a serializable buffer view. All RTP and RTCP packets inherit -from this class, and also items in some RTCP packets.
-AbstractcloneClone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Serializable dump.
-AbstractgetGet a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
AbstractserializeApply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTCP SLI packet (RTCP Payload Specific Feedback).
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|V=2|P| FMT=2 | PT=PSFB=206 | length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of packet sender |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of media source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| First | Number | PictureID |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-: ... :
-+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-
-
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump RTCP SLI packet info.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTCP SR REQ packet (RTCP Transport Layer Feedback).
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|V=2|P| FMT=5 | PT=RTPFB=205 | length=2 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of packet sender |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of media source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty RTCP SR REQ -packet will be created.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump RTCP SR REQ packet info.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Statistics Summary Extended Report.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| BT=6 |L|D|J|ToH|rsvd.| block length = 9 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| begin_seq | end_seq |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| lost_packets |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| dup_packets |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| min_jitter |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| max_jitter |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| mean_jitter |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| dev_jitter |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| min_ttl_or_hl | max_ttl_or_hl |mean_ttl_or_hl | dev_ttl_or_hl |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty Statistics -Summary Extended Report will be created.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump Statistics Summary Extended Report info.
-Get the Extended Report type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).VoIP Metrics Extended Report.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| BT=7 | reserved | block length = 8 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| SSRC of source |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| loss rate | discard rate | burst density | gap density |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| burst duration | gap duration |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| round trip delay | end system delay |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| signal level | noise level | RERL | Gmin |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| R factor | ext. R factor | MOS-LQ | MOS-CQ |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| RX config | reserved | JB nominal |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-| JB maximum | JB abs max |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataViewIf given it will be parsed. Otherwise an empty VoIP Metrics -Extended Report will be created.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump VoIP Metrics Extended Report info.
-Get the Extended Report type.
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).RTCP XR packet.
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-header |V=2|P|reserved | PT=XR=207 | length |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | SSRC |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-report : report blocks :
-blocks +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Add Extended Report.
-Clone the packet or item. The cloned instance does not share any memory -with the original one. The cloned instance is a new class instance -referencing a different buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be cloned. If not given, a -new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where clonation will
-start.
OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given
-serializationBuffer where serialization (if needed) will start.
Dump XR packet info.
-Get the RTCP packet type.
-Get Extended Reports.
-import { packets } from 'rtp.js';
const { XrPacket, ExtendedReportType, LrleExtendedReport } = packets;
const packet = new XrPacket(view);
for (const extendedReport of packet.getReports())
{
switch (extendedReport.getReportType())
{
case ExtendedReportType.LRLE:
{
const lrleExtendedReport = extendedReport as LrleExtendedReport;
console.log(lrleExtendedReport.getThinning());
break;
}
// etc.
}
}
-
-
-Get a buffer view containing the serialized content of the packet or item.
-OptionalserializationBuffer: ArrayBufferBuffer in which the content will be serialized -in case serialization is needed. If not given, a new one will internally -allocated.
-OptionalserializationByteOffset: numberByte offset of the given serializationBuffer
-where serialization (if needed) will start.
Apply pending changes and serialize the content of the packet or item into -a new buffer.
-Optionalbuffer: ArrayBufferBuffer in which the content will be serialized. If not -given, a new one will internally allocated.
-OptionalbyteOffset: numberByte offset of the given buffer where serialization
-will start.
buffer doesn't have space enough to serialize the content.buffer member of the given ArrayBuffer is the same than the
-internal buffer in this packet and the given byteOffset would make
-the serialization happen in bytes currently used by the packet (this would
-corrupt the packet).Set Extended Reports.
-RTP stack for Node.js and browser written in TypeScript. rtp.js provides with an API to parse, generate and modify RTP and RTCP packets.
-npm install rtp.js
-
-
-All RTP and RTCP classes, types and packet related helpers are exported by the packets module.
import { packets } from 'rtp.js';
const {
isRtp,
isRtcp,
RtpPacket,
CompoundPacket,
ReceiverReportPacket,
SenderReportPacket,
ReceptionReport,
ByePacket,
SdesPacket,
NackPacket,
SrReqPacket,
EcnPacket,
PliPacket,
SliPacket,
RpsiPacket,
XrPacket,
ExtendedJitterReportsPacket,
GenericPacket,
// etc.
} = packets;
-
-
-The utils module exports some generic helpers and utilities.
import { utils } from 'rtp.js';
const view = utils.stringToDataView('foo');
-
-
-Extended Report types.
-RTCP Feedback payload specific message types.
-RTCP packet types.
-RTCP APP packet.
-RTCP BYE packet.
-Extended Jitter Reports packet.
-RTCP Payload Specific Feedback packet.
-RTCP Receiver Report packet.
-RTCP Transport Layer Feedback packet.
-RTCP Sender Report packet.
-RTCP Sender Report packet.
-RTCP Extended Report packet.
-RTP extensions.
-Absolute Send Time.
-URI: http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
Media identification.
-URI: urn:ietf:params:rtp-hdrext:sdes:mid
RTP Repaired Stream Identifier.
-URI: urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
RTP Stream Identifier.
-URI: urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
Audio Level
-URI: urn:ietf:params:rtp-hdrext:ssrc-audio-level
Transmission Time Offsets.
-URI: urn:ietf:params:rtp-hdrext:toffset
Transport-wide Sequence Number.
-URI: http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
Video Orientation.
-URI: urn:3gpp:video-orientation
SDES Chunk Item types.
-Canonical End-Point Identifier SDES Item.
-Electronic Mail Address SDES Item.
-Geographic User Location SDES Item.
-User Name SDES Item.
-Notice/Status SDES Item.
-Phone Number SDES Item.
-Private Extensions SDES Item.
-Application or Tool Name SDES Item.
-Create a Bit Vector Chunk and return a 2 bytes number representing it.
- 0 1
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|C| bit vector |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Create a Run Length Chunk and return a 2 bytes number representing it.
- 0 1
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|C|R| run length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Parse given 2 bytes number as a Extended Report chunk.
-Get the RTP extension type associated to the given RTP extension URI.
-RTP stack for Node.js and browser written in TypeScript. rtp.js provides with an API to parse, generate and modify RTP and RTCP packets.
-npm install rtp.js
-
-
-All RTP and RTCP classes, types and packet related helpers are exported by the packets module.
import { packets } from 'rtp.js';
const {
isRtp,
isRtcp,
RtpPacket,
CompoundPacket,
ReceiverReportPacket,
SenderReportPacket,
ReceptionReport,
ByePacket,
SdesPacket,
NackPacket,
SrReqPacket,
EcnPacket,
PliPacket,
SliPacket,
RpsiPacket,
XrPacket,
ExtendedJitterReportsPacket,
GenericPacket,
// etc.
} = packets;
-
-
-The utils module exports some generic helpers and utilities.
import { utils } from 'rtp.js';
const view = utils.stringToDataView('foo');
-
-
-RTCP BYE packet info dump.
-RTCP Compound packet info dump.
-DLRR Extended Report dump.
-Duplicate RLE Extended Report dump.
-ECN Summary Extended Report dump.
-RTCP ECN packet info dump.
-RTCP Extended Jitter Reports packet info dump.
-Loss RLE and Duplicate RLE Extended Report chunk info.
-Run Length Chunk
- 0 1
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|C|R| run length |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-Bit Vector Chunk
- 0 1
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|C| bit vector |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-Terminating Null Chunk
- 0 1
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0|
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-OptionalbitVector?: numberChunk bit vector (only set if chunkType is 'bit-vector').
Chunk type (Run Length Chunk, Bit Vector Chunk or Terminating Null Chunk).
-OptionalrunLength?: numberChunk run length (only set if chunkType is 'run-length').
OptionalrunType?: "zeros" | "ones"Chunk run type (only set if chunkType is 'run-length').
Extended Report dump.
-RTCP Feedback packet info dump.
-Generic Extended Report dump.
-RTCP generic Feedback packet info.
-RTCP generic packet info dump.
-Loss RLE Extended Report dump.
-RTCP NACK packet info dump.
-Packet info dump.
-Packet Receipt Times Extended Report dump.
-RTCP Receiver Report packet info dump.
-Reception Report dump.
-RTCP RPSI packet info dump.
-Receiver Reference Time Extended Report dump.
-Base RTCP packet info dump.
-Mapping of RTP extension types and their corresponding RTP extension ids.
-RTP packet info dump.
-SDES Chunk dump.
-RTCP SDES packet info dump.
-RTCP Sender Report packet info dump.
-RTCP SLI packet info dump.
-Statistics Summary Extended Report dump.
-SSRC Audio Level data.
-VoIP Metrics Extended Report dump.
-RTCP XR packet info dump.
-
RTCP BYE packet.
- - -See
-- RFC 3550 section 6.6
-
-