【webrtc】接收/发送的rtp包、编解码的VCM包、CopyOnWriteBuffer

  • 收到的rtp包RtpPacketReceived 经过RtpDepacketizer 解析后变为ParsedPayload

RtpPacketReceived

【webrtc】接收/发送的rtp包、编解码的VCM包、CopyOnWriteBuffer_第1张图片

  • 分配内存,执行memcpy拷贝:然后把 RtpPacketReceived 给到OnRtpPacket 传递:
  uint8_t* media_payload = media_packet.AllocatePayload(rtx_payload.size());
  RTC

你可能感兴趣的:(WebRTC入门与实战,webrtc,网络)