Use source codec for encoded RTP passthrough

This commit is contained in:
2026-03-27 11:19:03 +08:00
parent bb3ace43b7
commit c320bf01af
4 changed files with 23 additions and 12 deletions
@@ -33,7 +33,7 @@ public:
UdpRtpPublisher &operator=(UdpRtpPublisher &&other) noexcept;
[[nodiscard]]
static std::expected<UdpRtpPublisher, std::string> create(const RuntimeConfig &config);
static std::expected<UdpRtpPublisher, std::string> create(const RuntimeConfig &config, CodecType codec);
void publish_access_unit(std::span<const std::uint8_t> access_unit, std::uint64_t pts_ns);