mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 12:45:35 +08:00
[feat] enable congestion controller
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user