SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
rtcp_transport.hpp
1//
2// rtcp_transport.hpp
3// skyway
4//
5// Created by sandabu on 2025/06/06.
6// Copyright © 2025 NTT DOCOMO BUSINESS, Inc. All rights reserved.
7//
8
9#ifndef SKYWAY_MEDIA_RTP_RTCP_TRANSPORT_HPP_
10#define SKYWAY_MEDIA_RTP_RTCP_TRANSPORT_HPP_
11
12#include <cstdint>
13#include <string>
14
15#include <modules/rtp_rtcp/include/rtp_rtcp_defines.h>
16
17#include <api/call/transport.h>
18
19#include "skyway/media/rtp/interface/rtp_capturer_video_source.hpp"
20#include "skyway/network/interface/udp_client.hpp"
21
22namespace skyway {
23namespace media {
24namespace rtp {
26class RtcpTransport : public webrtc::Transport {
27public:
28 RtcpTransport(const interface::RtpCapturerVideoSourceOptions& options);
29 RtcpTransport(std::unique_ptr<network::interface::UdpClient> udp_client);
30 ~RtcpTransport();
31
32 // webrtc::Transport
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;
36
37private:
38 std::unique_ptr<network::interface::UdpClient> udp_client_ = nullptr;
39};
40// @endcond
41
42} // namespace rtp
43} // namespace media
44} // namespace skyway
45
46#endif // SKYWAY_MEDIA_RTP_RTCP_TRANSPORT_HPP_