[feat] use packet sender to send all rtp packets

This commit is contained in:
dijunkun
2025-03-17 18:44:29 +08:00
parent b0306d510c
commit fa667df1e0
11 changed files with 79 additions and 18 deletions

View File

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