Optionalview: DataView<ArrayBufferLike>If given it will be parsed. Otherwise an empty RTCP BYE -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 BYE packet info.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-Get reason.
-Get SSRC values.
-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 reason.
-Optionalreason: stringRTCP Compound packet.
-Optionalview: DataView<ArrayBufferLike>If 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: DataView<ArrayBufferLike>If given it will be parsed. Otherwise an empty DLRR 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 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).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: DataView<ArrayBufferLike>If 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 begin sequence number.
-Get chunks.
-Get end sequence number.
-Get the Extended Report type.
-Get SSRC of source.
-Get thinning.
-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 begin sequence number.
-Set chunks.
-Set end sequence number.
-Set SSRC of source.
-Set thinning.
-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: DataView<ArrayBufferLike>If 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 Duplication Counter.
-Get ECN-CE Counter.
-Get ECT (0) Counter.
-Get ECT (1) Counter.
-Get Lost Packets Counter.
-Get not-ECT Counter.
-Get the Extended Report type.
-Get SSRC of media sender.
-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 Duplication Counter.
-Set ECN-CE Counter.
-Set ECT (0) Counter.
-Set ECT (1) Counter.
-Set Lost Packets Counter.
-Set not-ECT Counter.
-Set SSRC of media sender.
-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 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataView<ArrayBufferLike>If given it will be parsed. Otherwise an empty RTCP ECN -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 ECN packet info.
-Get Duplication Counter.
-Get ECN-CE Counter.
-Get ECT (0) Counter.
-Get ECT (1) Counter.
-Get Extended Highest Sequence Number.
-Get Lost Packets Counter.
-Get media SSRC.
-Get the RTCP Feedback message type.
-Get not-ECT Counter.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-Get sender SSRC.
-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 Duplication Counter.
-Set ECN-CE Counter.
-Set ECT (0) Counter.
-Set ECT (1) Counter.
-Set Extended Highest Sequence Number.
-Set Lost Packets Counter.
-Set media SSRC.
-Set not-ECT Counter.
-Set sender SSRC.
-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: DataView<ArrayBufferLike>If 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 inter-arrival jitter values.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-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 media SSRC.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-Get sender SSRC.
-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).Set media SSRC.
-Set sender SSRC.
-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: DataView<ArrayBufferLike>If 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 report body.
-Get the Extended Report type.
-Get the value of the type specific field (second byte in the Extended -Report common header).
-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 type specific field (second byte in the Extended -Report common header).
-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: DataView<ArrayBufferLike>If 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 packet body.
-Get media SSRC.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-Get sender SSRC.
-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 media SSRC.
-Set sender SSRC.
-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: DataView<ArrayBufferLike>If 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 packet body.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-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: DataView<ArrayBufferLike>If 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 begin sequence number.
-Get chunks.
-Get end sequence number.
-Get the Extended Report type.
-Get SSRC of source.
-Get thinning.
-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 begin sequence number.
-Set chunks.
-Set end sequence number.
-Set SSRC of source.
-Set thinning.
-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: DataView<ArrayBufferLike>If 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 media SSRC.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-Get sender SSRC.
-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.
-Set media SSRC.
-Set sender SSRC.
-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 the padding (in bytes) at the end of the packet.
-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).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 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataView<ArrayBufferLike>If given it will be parsed. Otherwise an empty RTCP PLI -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 PLI packet info.
-Get media SSRC.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-Get sender SSRC.
-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 media SSRC.
-Set sender SSRC.
-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: DataView<ArrayBufferLike>If 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 begin sequence number.
-Get end sequence number.
-Get the Extended Report type.
-Get SSRC of source.
-Get thinning.
-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 begin sequence number.
-Set end sequence number.
-Set SSRC of source.
-Set thinning.
-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: DataView<ArrayBufferLike>If given it will be parsed. Otherwise an empty RTCP Receiver -Report 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 the padding (in bytes) at the end of the packet.
-Get Reception Reports.
-Get sender SSRC.
-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 sender SSRC.
-RTCP Reception Report.
-Optionalview: DataView<ArrayBufferLike>If 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 delay since last Sender Report.
-Get fraction lost.
-Get highest RTP sequence number.
-Get interarrival jitter.
-Set last Sender Report timestamp.
-Get receiver SSRC.
-Get total lost.
-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 delay since last Sender Report.
-Set fraction lost.
-Set highest RTP sequence number.
-Set interarrival jitter.
-Set last Sender Report timestamp.
-Set receiver SSRC.
-Set total lost.
-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: DataView<ArrayBufferLike>If 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 bit string.
-Get media SSRC.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-Get payload type.
-Get sender SSRC.
-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 media SSRC.
-Set the payload type.
-Set sender SSRC.
-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: DataView<ArrayBufferLike>If 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 NTP fraction.
-Get NTP seconds.
-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 NTP fraction.
-Set NTP seconds.
-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 the padding (in bytes) at the end of the packet.
-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 |
-| .... |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataView<ArrayBufferLike>If given it will be parsed. Otherwise an empty RTP packet -(with just the minimal fixed header) 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 RTP packet info.
-Read the value of the RtpExtensionType.ABS_SEND_TIME RTP -extension.
-Get the RTP CSRC values.
-Get the value of the extension with given id (RFC 5285).
-Get RTP extension mapping (association of RTP extension types and their -numeric ids in this RTP packet).
-Get a map with all the extensions indexed by their extension id (RFC 5285).
-Get the RTP marker flag.
-Read the value of the RtpExtensionType.MID RTP extension.
-Get the padding (in bytes) at the end of the packet.
-Get the packet payload.
-Get the RTP payload type.
-Read the value of the RtpExtensionType.RTP_REPAIRED_STREAM_ID RTP -extension.
-Read the value of the RtpExtensionType.RTP_STREAM_ID RTP -extension.
-Get the RTP sequence number.
-Get the RTP SSRC.
-Read the value of the RtpExtensionType.SSRC_AUDIO_LEVEL RTP -extension.
-Get the RTP timestamp.
-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.
Whether One-Byte extensions (as per RFC 5285) are enabled.
-Whether Two-Bytes extensions (as per RFC 5285) are enabled.
-Decode the packet using RTX procedures (as per RFC 4588).
-The original payload type.
-The original SSRC.
-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 the RTP marker flag.
-Set the RTP payload type.
-Set 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 RTP sequence number.
-Set the RTP SSRC.
-Set the value of the RtpExtensionType.SSRC_AUDIO_LEVEL RTP -extension.
-OptionalssrcAudioLevel: SsrcAudioLevelExtensionSet the RTP timestamp.
-Set 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.
-Optionalview: DataView<ArrayBufferLike>If given it will be parsed. Otherwise an empty RTCP SDES -Chunk 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 SDES Chunk info.
-Get SDES Items.
-Get SDES Chunk SSRC.
-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 Chunk SSRC.
-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: DataView<ArrayBufferLike>If 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 SDES Chunks.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-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: DataView<ArrayBufferLike>If given it will be parsed. Otherwise an empty RTCP Sender -Report 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 Sender Report packet info.
-Get NTP fraction.
-Get NTP seconds.
-Get RTP octet count.
-Get RTP packet count.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-Get Reception Reports.
-Get RTP Timestamp.
-Get sender SSRC.
-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 NTP fraction.
-Set NTP seconds.
-Set RTP octet count.
-Set RTP packet count.
-Set RTP Timestamp.
-Set sender SSRC.
-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 |
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-: ... :
-+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-
-
-Optionalview: DataView<ArrayBufferLike>If given it will be parsed. Otherwise an empty RTCP SLI -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 SLI packet info.
-Get SLI items.
-Get media SSRC.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-Get sender SSRC.
-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 media SSRC.
-Set sender SSRC.
-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: DataView<ArrayBufferLike>If 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 media SSRC.
-Get the RTCP Feedback message type.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-Get sender SSRC.
-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 media SSRC.
-Set sender SSRC.
-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: DataView<ArrayBufferLike>If 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 begin sequence number.
-Get end sequence number.
-Get the Extended Report type.
-Get SSRC of source.
-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 begin sequence number.
-Set dev jitter.
-Set dev TTL or Hop Limit value.
-Set number of duplicate packets.
-Set end sequence number.
-Set number of lost packets.
-Set maximum jitter.
-Set maximum TTL or Hop Limit value.
-Set mean jitter.
-Set mean TTL or Hop Limit value.
-Set minimum jitter.
-Set minimum TTL or Hop Limit value.
-Set SSRC of source.
-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: DataView<ArrayBufferLike>If 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 burst density.
-Get burst duration.
-Get discard rate.
-Get end system delay.
-Get external R factor.
-Get gap density.
-Get gap duration.
-Get Gmin.
-Get jitter buffer absolute maximum delay.
-Get jitter buffer adaptive (JBA).
-Get jitter buffer maximum delay.
-Get jitter buffer nominal delay.
-Get jitter buffer rate (JB rate).
-Get loss rate.
-Get MOS-CQ.
-Get MOS-LQ.
-Get noise level.
-Get packet loss concealment (PLC).
-Get the Extended Report type.
-Get residual echo return loss.
-Get R factor.
-Get round trip delay.
-Get signal level.
-Get SSRC of source.
-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 burst density.
-Set burst duration.
-Set discard rate.
-Set end system delay.
-Set external R factor.
-Set gap density.
-Set gap duration.
-Set Gmin.
-Set jitter buffer absolute maximum delay.
-Set jitter buffer adaptive (JBA).
-Set jitter buffer maximum delay.
-Set jitter buffer nominal delay.
-Set jitter buffer rate (JB rate).
-Set loss rate.
-Set MOS-CQ.
-Set MOS-LQ.
-Set noise level.
-Set packet loss concealment (PLC).
-Set residual echo return loss.
-Set R factor.
-Set round trip delay.
-Set signal level.
-Set SSRC of source.
-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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-
-Optionalview: DataView<ArrayBufferLike>If given it will be parsed. Otherwise an empty RTCP XR 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 XR packet info.
-Get the RTCP packet type.
-Get the padding (in bytes) at the end of the packet.
-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 sender SSRC.
-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 sender SSRC.
-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 NACK item.
-RTP sequence number of lost packets. As per NACK rules, there -can be up to 17 seq numbers and max diff between lowest and highest must -be 17.
-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
-
-