nisse | 0f15f92 | 2017-06-21 08:05:22 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
Mirko Bonadei | 92ea95e | 2017-09-15 04:47:31 | [diff] [blame] | 10 | #ifndef CALL_RTP_STREAM_RECEIVER_CONTROLLER_INTERFACE_H_ |
| 11 | #define CALL_RTP_STREAM_RECEIVER_CONTROLLER_INTERFACE_H_ |
nisse | 0f15f92 | 2017-06-21 08:05:22 | [diff] [blame] | 12 | |
| 13 | #include <memory> |
| 14 | |
Mirko Bonadei | 92ea95e | 2017-09-15 04:47:31 | [diff] [blame] | 15 | #include "call/rtp_packet_sink_interface.h" |
nisse | 0f15f92 | 2017-06-21 08:05:22 | [diff] [blame] | 16 | |
| 17 | namespace webrtc { |
| 18 | |
| 19 | // An RtpStreamReceiver is responsible for the rtp-specific but |
| 20 | // media-independent state needed for receiving an RTP stream. |
Niels Möller | cb99ccd | 2022-07-05 13:44:48 | [diff] [blame] | 21 | // TODO(bugs.webrtc.org/7135): Currently, only owns the association between ssrc |
| 22 | // and the stream's RtpPacketSinkInterface. Ownership of corresponding objects |
| 23 | // from modules/rtp_rtcp/ should move to this class (or rather, the |
| 24 | // corresponding implementation class). We should add methods for getting rtp |
| 25 | // receive stats, and for sending RTCP messages related to the receive stream. |
nisse | 0f15f92 | 2017-06-21 08:05:22 | [diff] [blame] | 26 | class RtpStreamReceiverInterface { |
| 27 | public: |
| 28 | virtual ~RtpStreamReceiverInterface() {} |
| 29 | }; |
| 30 | |
| 31 | // This class acts as a factory for RtpStreamReceiver objects. |
| 32 | class RtpStreamReceiverControllerInterface { |
| 33 | public: |
| 34 | virtual ~RtpStreamReceiverControllerInterface() {} |
| 35 | |
| 36 | virtual std::unique_ptr<RtpStreamReceiverInterface> CreateReceiver( |
| 37 | uint32_t ssrc, |
| 38 | RtpPacketSinkInterface* sink) = 0; |
nisse | 0f15f92 | 2017-06-21 08:05:22 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | } // namespace webrtc |
| 42 | |
Mirko Bonadei | 92ea95e | 2017-09-15 04:47:31 | [diff] [blame] | 43 | #endif // CALL_RTP_STREAM_RECEIVER_CONTROLLER_INTERFACE_H_ |