// Checks the packet header to determine if it can be an RTP or RTCP packet.
RtpPacketType InferRtpPacketType(std::span<const uint8_t> packet); // True if |payload type| is 0-127. bool IsValidRtpPayloadType(int payload_type);
// True if `size` is appropriate for the indicated packet type. bool IsValidRtpPacketSize(RtpPacketType packet_type, size_t size);
// Returns "RTCP", "RTP" or "Unknown" according to `packet_type`.
absl::string_view RtpPacketTypeToString(RtpPacketType packet_type);
// Verifies that a packet has a valid RTP header. bool RTC_EXPORT ValidateRtpHeader(std::span<const uint8_t> rtp,
size_t* header_length);
} // namespace webrtc
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.