#ifndef MS_RTC_RTP_PROBATION_GENERATOR_HPP
#define MS_RTC_RTP_PROBATION_GENERATOR_HPP
#include "common.hpp"
#include "RTC/RTP/Packet.hpp"
namespace RTC
{
namespace RTP
{
class ProbationGenerator
{
public:
static const size_t ProbationPacketMaxLength{ 1400 };
static const uint32_t Ssrc{ 1234 };
static const uint8_t PayloadType{ 127u };
public:
explicit ProbationGenerator();
~ProbationGenerator();
public:
RTP::Packet* GetNextPacket(size_t len);
size_t GetProbationPacketMinLength() const
{
return this->probationPacketMinLength;
}
private:
std::unique_ptr<RTP::Packet> probationPacket;
size_t probationPacketMinLength{ 0 };
};
} }
#endif