rtpdepacketizer.hpp 819 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * Copyright (c) 2024 Paul-Louis Ageneau
  3. *
  4. * This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at https://mozilla.org/MPL/2.0/.
  7. */
  8. #ifndef RTC_RTP_DEPACKETIZER_H
  9. #define RTC_RTP_DEPACKETIZER_H
  10. #if RTC_ENABLE_MEDIA
  11. #include "mediahandler.hpp"
  12. #include "message.hpp"
  13. namespace rtc {
  14. class RTC_CPP_EXPORT RtpDepacketizer : public MediaHandler {
  15. public:
  16. RtpDepacketizer() = default;
  17. virtual ~RtpDepacketizer() = default;
  18. virtual void incoming(message_vector &messages, const message_callback &send) override;
  19. };
  20. using OpusRtpDepacketizer = RtpDepacketizer;
  21. using AACRtpDepacketizer = RtpDepacketizer;
  22. } // namespace rtc
  23. #endif /* RTC_ENABLE_MEDIA */
  24. #endif /* RTC_RTP_DEPACKETIZER_H */