5#ifndef SKYWAY_MEDIA_RTP_RTCP_TRANSPORT_HPP_
6#define SKYWAY_MEDIA_RTP_RTCP_TRANSPORT_HPP_
11#include <modules/rtp_rtcp/include/rtp_rtcp_defines.h>
13#include <api/call/transport.h>
15#include "skyway/media/rtp/interface/rtp_capturer_video_source.hpp"
16#include "skyway/network/interface/udp_client.hpp"
22class RtcpTransport :
public webrtc::Transport {
24 RtcpTransport(
const interface::RtpCapturerVideoSourceOptions& options);
25 RtcpTransport(std::unique_ptr<network::interface::UdpClient> udp_client);
29 bool SendRtp(rtc::ArrayView<const uint8_t> packet,
30 const webrtc::PacketOptions& options)
override;
31 bool SendRtcp(rtc::ArrayView<const uint8_t> packet)
override;
34 std::unique_ptr<network::interface::UdpClient> udp_client_ =
nullptr;