A Header is the common header shared by all RTCP packets.
| 67 | |
| 68 | // A Header is the common header shared by all RTCP packets. |
| 69 | type Header struct { |
| 70 | // If the padding bit is set, this individual RTCP packet contains |
| 71 | // some additional padding octets at the end which are not part of |
| 72 | // the control information but are included in the length field. |
| 73 | Padding bool |
| 74 | // The number of reception reports, sources contained or FMT in this packet (depending on the Type) |
| 75 | Count uint8 |
| 76 | // The RTCP packet type for this packet |
| 77 | Type PacketType |
| 78 | // The length of this RTCP packet in 32-bit words minus one, |
| 79 | // including the header and any padding. |
| 80 | Length uint16 |
| 81 | } |
| 82 | |
| 83 | const ( |
| 84 | headerLength = 4 |
nothing calls this directly
no outgoing calls
no test coverage detected