9#ifndef SKYWAY_MEDIA_RTP_RTCP_TRANSPORT_HPP_
10#define SKYWAY_MEDIA_RTP_RTCP_TRANSPORT_HPP_
15#include <modules/rtp_rtcp/include/rtp_rtcp_defines.h>
17#include <api/call/transport.h>
19#include "skyway/media/rtp/interface/rtp_capturer_video_source.hpp"
20#include "skyway/network/interface/udp_client.hpp"
26class RtcpTransport :
public webrtc::Transport {
28 RtcpTransport(
const interface::RtpCapturerVideoSourceOptions& options);
29 RtcpTransport(std::unique_ptr<network::interface::UdpClient> udp_client);
33 bool SendRtp(rtc::ArrayView<const uint8_t> packet,
34 const webrtc::PacketOptions& options)
override;
35 bool SendRtcp(rtc::ArrayView<const uint8_t> packet)
override;
38 std::unique_ptr<network::interface::UdpClient> udp_client_ =
nullptr;