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