原创文章,禁止转载!否则追究!
之前已经说明了webrtc中的rtp头的信息解析;
这里讲解一下webrtc中的rtp解析,这里主要说明一下h264的解析;
关于vp8和vp9,webrtc中都相关的类实现和相关test文件;
关于h264的rtp文件解析,webrtc中主要实现了三种rtp的打包协议:
enum H264PacketizationTypes {
kH264SingleNalu, // This packet contains a single NAL unit.
kH264StapA, // This packet contains STAP-A (single time
// aggregation) packets. If this packet has an
// associated NAL unit type, it'll be for the
// first such aggregated packet.
kH264FuA, // This packet contains a FU-A (fragmentation
// unit) packet, meaning it is a part of a frame
// that was too large to fit into a single packet.
};