mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[feat] rewrite rtp module
This commit is contained in:
25
src/rtp/rtp_packetizer/rtp_packetizer.h
Normal file
25
src/rtp/rtp_packetizer/rtp_packetizer.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* @Author: DI JUNKUN
|
||||
* @Date: 2025-01-22
|
||||
* Copyright (c) 2025 by DI JUNKUN, All Rights Reserved.
|
||||
*/
|
||||
|
||||
#ifndef _RTP_PACKETIZER_H_
|
||||
#define _RTP_PACKETIZER_H_
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
#include "rtp_packet.h"
|
||||
|
||||
class RtpPacketizer {
|
||||
public:
|
||||
static std::unique_ptr<RtpPacketizer> Create(uint32_t payload_type);
|
||||
|
||||
virtual ~RtpPacketizer() = default;
|
||||
|
||||
bool Build(uint8_t* payload, uint32_t payload_size) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user