[feat] enable congestion controller

This commit is contained in:
dijunkun
2025-02-07 17:42:05 +08:00
parent 316a0220a8
commit 8d7068aa32
32 changed files with 184 additions and 46 deletions

View File

@@ -4,13 +4,14 @@
#include "rtp_packetizer_generic.h"
#include "rtp_packetizer_h264.h"
std::unique_ptr<RtpPacketizer> RtpPacketizer::Create(uint32_t payload_type) {
std::unique_ptr<RtpPacketizer> RtpPacketizer::Create(uint32_t payload_type,
uint32_t ssrc) {
switch (payload_type) {
case rtp::PAYLOAD_TYPE::H264:
return std::make_unique<RtpPacketizerH264>();
return std::make_unique<RtpPacketizerH264>(ssrc);
case rtp::PAYLOAD_TYPE::AV1:
return std::make_unique<RtpPacketizerAv1>();
return std::make_unique<RtpPacketizerAv1>(ssrc);
default:
return std::make_unique<RtpPacketizerGeneric>();
return std::make_unique<RtpPacketizerGeneric>(ssrc);
}
}