当前版本为webrtc58;
一:webrtc中,接收视频packet的基本过程是(这里说的的H264,vp8和vp9是一样的过程,在解析后会判断类型,构造RtpDepacketizer):
//接收 video rtp_packet
通过 class PhysicalSocket : public AsyncSocket, public sigslot::has_slots<> ,真正实现网络UDP数据发送,接收;
// rtp packet 解析 为 RTPHeader + ParsedPayload -> 构造 WebRtcRTPHeader -> 构造 VCMPacket -> packet_buffer_->InsertPacket(&packet)
bool RtpReceiverImpl::IncomingRtpPacket -> int32_t RTPReceiverVideo::ParseRtpPacket -> int32_t RtpStreamReceiver::OnReceivedPayloadData
// video rtp packet -> h264 Frame
<