[feat] add timestamp to sender report

This commit is contained in:
dijunkun
2025-02-21 17:36:32 +08:00
parent a39d0f6652
commit d1177747fd
8 changed files with 48 additions and 32 deletions

View File

@@ -30,7 +30,7 @@ void RtpAudioSender::Enqueue(
}
for (auto& rtp_packet : rtp_packets) {
rtp_packe_queue_.push(rtp_packet);
rtp_packet_queue_.push(rtp_packet);
}
}
@@ -139,9 +139,9 @@ bool RtpAudioSender::Process() {
last_send_bytes_ = 0;
for (size_t i = 0; i < 10; i++)
if (!rtp_packe_queue_.isEmpty()) {
if (!rtp_packet_queue_.isEmpty()) {
std::shared_ptr<RtpPacket> rtp_packet;
rtp_packe_queue_.pop(rtp_packet);
rtp_packet_queue_.pop(rtp_packet);
SendRtpPacket(rtp_packet);
}