WebRtc Native M96 远端视频接收之RtpVideoStreamReceiver2-RTP包接收流程分析
Posted 一苇渡江694
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WebRtc Native M96 远端视频接收之RtpVideoStreamReceiver2-RTP包接收流程分析相关的知识,希望对你有一定的参考价值。
rtp包是如何到达Call模块的
从网络接收包,到达WebRtcVideoChannel::OnPacketReceived
UDPPort::HandleIncomingPacket
UDPPort::OnReadPacket
Connection::OnReadPacket
P2PTransportChannel::OnReadPacket
DtlsTransport::OnReadPacket
RtpTransport::OnReadPacket
SrtpTransport::OnRtpPacketReceived
RtpTransport::DemuxPacket
RtpDemuxer::OnRtpPacket
BaseChannel::OnRtpPacket
WebRtcVideoChannel::OnPacketReceived
在WebRtcVideoChannel::OnPacketReceived中,从network_thread线程转到worker_thread,也就是到了Call::DeliverPacket中
worker_thread_->PostTask(
ToQueuedTask(task_safety_, [this, packet, packet_time_us]
RTC_DCHECK_RUN_ON(&thread_checker_);
const webrtc::PacketReceiver::DeliveryStatus delivery_result =
call_->Receiver()->DeliverPacket(webrtc::MediaType::VIDEO, packet,
packet_time_us)
......
));
以上是关于WebRtc Native M96 远端视频接收之RtpVideoStreamReceiver2-RTP包接收流程分析的主要内容,如果未能解决你的问题,请参考以下文章
WebRtc Native M96 远端视频接收之NackRequesterNackSender-NACK丢包重传原理
WebRtc Native M96 远端视频接收之NackRequesterNackSender-NACK丢包重传原理
WebRtc Native M96 远端视频接收之VideoReceiveStream2模块创建分析
WebRtc Native M96 远端视频接收之PacketBuffer-组帧原理分析