Per K | 5e5d017 | 2022-12-22 12:43:41 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2022 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 | */ |
| 10 | #ifndef MODULES_RTP_RTCP_INCLUDE_RECOVERED_PACKET_RECEIVER_H_ |
| 11 | #define MODULES_RTP_RTCP_INCLUDE_RECOVERED_PACKET_RECEIVER_H_ |
| 12 | |
| 13 | #include "modules/rtp_rtcp/source/rtp_packet_received.h" |
| 14 | #include "rtc_base/checks.h" |
| 15 | |
| 16 | namespace webrtc { |
| 17 | |
| 18 | // Callback interface for packets recovered by FlexFEC or ULPFEC. In |
| 19 | // the FlexFEC case, the implementation should be able to demultiplex |
| 20 | // the recovered RTP packets based on SSRC. |
| 21 | class RecoveredPacketReceiver { |
| 22 | public: |
Per K | 83c357f | 2023-01-05 11:01:52 | [diff] [blame] | 23 | virtual void OnRecoveredPacket(const RtpPacketReceived& packet) = 0; |
Per K | 5e5d017 | 2022-12-22 12:43:41 | [diff] [blame] | 24 | |
| 25 | protected: |
| 26 | virtual ~RecoveredPacketReceiver() = default; |
| 27 | }; |
| 28 | |
| 29 | } // namespace webrtc |
| 30 | #endif // MODULES_RTP_RTCP_INCLUDE_RECOVERED_PACKET_RECEIVER_H_ |