1#ifndef SKYWAY_MEDIA_RTP_RTCP_TRANSPORT_HPP_
2#define SKYWAY_MEDIA_RTP_RTCP_TRANSPORT_HPP_
7#include <modules/rtp_rtcp/include/rtp_rtcp_defines.h>
9#include <api/call/transport.h>
11#include "skyway/media/rtp/interface/rtp_capturer_video_source.hpp"
12#include "skyway/network/interface/udp_client.hpp"
18class RtcpTransport :
public webrtc::Transport {
20 RtcpTransport(
const interface::RtpCapturerVideoSourceOptions& options);
21 RtcpTransport(std::unique_ptr<network::interface::UdpClient> udp_client);
25 bool SendRtp(rtc::ArrayView<const uint8_t> packet,
26 const webrtc::PacketOptions& options)
override;
27 bool SendRtcp(rtc::ArrayView<const uint8_t> packet)
override;
30 std::unique_ptr<network::interface::UdpClient> udp_client_ =
nullptr;