[fix] use task queue to process rtp packet history

This commit is contained in:
dijunkun
2025-04-03 16:54:28 +08:00
parent a36b352039
commit 772db42494
13 changed files with 152 additions and 196 deletions

View File

@@ -8,7 +8,7 @@
#define _AUDIO_CHANNEL_SEND_H_
#include "ice_agent.h"
#include "packet_sender.h"
#include "paced_sender.h"
#include "rtp_audio_sender.h"
#include "rtp_packetizer.h"
@@ -16,7 +16,7 @@ class AudioChannelSend {
public:
AudioChannelSend();
AudioChannelSend(std::shared_ptr<IceAgent> ice_agent,
std::shared_ptr<PacketSender> packet_sender,
std::shared_ptr<PacedSender> packet_sender,
std::shared_ptr<IOStatistics> ice_io_statistics);
~AudioChannelSend();
@@ -36,7 +36,7 @@ class AudioChannelSend {
void OnReceiverReport(const ReceiverReport& receiver_report) {}
private:
std::shared_ptr<PacketSender> packet_sender_ = nullptr;
std::shared_ptr<PacedSender> paced_sender_ = nullptr;
std::shared_ptr<IceAgent> ice_agent_ = nullptr;
std::shared_ptr<IOStatistics> ice_io_statistics_ = nullptr;
std::unique_ptr<RtpPacketizer> rtp_packetizer_ = nullptr;