blob: 4e92c486e285f872670bcb6dd31d193a617b027c [file] [log] [blame]
Per K5e5d0172022-12-22 12:43:411/*
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
16namespace 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.
21class RecoveredPacketReceiver {
22 public:
Per K83c357f2023-01-05 11:01:5223 virtual void OnRecoveredPacket(const RtpPacketReceived& packet) = 0;
Per K5e5d0172022-12-22 12:43:4124
25 protected:
26 virtual ~RecoveredPacketReceiver() = default;
27};
28
29} // namespace webrtc
30#endif // MODULES_RTP_RTCP_INCLUDE_RECOVERED_PACKET_RECEIVER_H_