WebRTC【4096版本】
NetEQ的作用
进行抖动控制和丢包隐藏,通过该技术可以让音频更平滑
NetEQ插入packet数据
int NetEqImpl::InsertPacketInternal(const RTPHeader& rtp_header,rtc::ArrayView<const uint8_t> payload) {//如果有效荷载payload为空if (payload.empty()) {RTC_LOG_F(LS_ERROR) << "payload is empty";return kInvalidPointer;}//记录当前时间int64_t receive_time_ms = clock_->TimeInMilliseconds();//每插入一个新包jitter_buffer_packets_received都加1stats_->ReceivedPacket();//定义一个包列表PacketList packet_list;// Insert packet in a packet list.packet_list.push_back([&rtp_header, &payload, &receive_time_ms] {// Convert to Packet