SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
rtcp_transport.hpp
1#ifndef SKYWAY_MEDIA_RTP_RTCP_TRANSPORT_HPP_
2#define SKYWAY_MEDIA_RTP_RTCP_TRANSPORT_HPP_
3
4#include <cstdint>
5#include <string>
6
7#include <modules/rtp_rtcp/include/rtp_rtcp_defines.h>
8
9#include <api/call/transport.h>
10
11#include "skyway/media/rtp/interface/rtp_capturer_video_source.hpp"
12#include "skyway/network/interface/udp_client.hpp"
13
14namespace skyway {
15namespace media {
16namespace rtp {
18class RtcpTransport : public webrtc::Transport {
19public:
20 RtcpTransport(const interface::RtpCapturerVideoSourceOptions& options);
21 RtcpTransport(std::unique_ptr<network::interface::UdpClient> udp_client);
22 ~RtcpTransport();
23
24 // webrtc::Transport
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;
28
29private:
30 std::unique_ptr<network::interface::UdpClient> udp_client_ = nullptr;
31};
33
34} // namespace rtp
35} // namespace media
36} // namespace skyway
37
38#endif // SKYWAY_MEDIA_RTP_RTCP_TRANSPORT_HPP_