Files
crossdesk/src/transport/packet_sender/packet_sender.h
2025-03-19 14:35:48 +08:00

26 lines
472 B
C++

/*
* @Author: DI JUNKUN
* @Date: 2025-03-17
* Copyright (c) 2025 by DI JUNKUN, All Rights Reserved.
*/
#ifndef _PACKET_SENDER_H_
#define _PACKET_SENDER_H_
#include <memory>
#include <vector>
#include "rtp_packet.h"
class PacketSender {
public:
PacketSender() {}
virtual ~PacketSender() {}
virtual int Send() = 0;
virtual int EnqueueRtpPacket(
std::vector<std::unique_ptr<RtpPacket>> &rtp_packets,
int64_t capture_timestamp_us) = 0;
};
#endif